i have dates taht are saved in the database in the format of YYYY-mm-dd (ex. 2013-01-31). In some areas I need to display the date as MMM dd, YYYY (ex. Jan 31, 2013). Can anyone help me in this converting.
I am using php and a mysql database. So far I have this to separate the date values, but dont know how to change them to what I want:
list($BYear, $BMonth, $BDay) = explode('-', $DateOfBirth);
$CYear = date('Y');
$CMonth = date('m');
$CDay = date('d');
Thanks in advance.