I am using MySQL and php. When I get a date from MySQL it is in the format yyyy-MM-dd
. Once I get this string, how can I convert it to format of example Jan 2 2013
in php?
I tried
date("M j Y", mysql_result($recordset, $i, 'date_started'));
using http://www.php.net/manual/en/function.date.php as a reference, but I get some weird date as the output.