I am trying to take a date in the format "YYYY-MM-DD" and get from it the month as a word (e.g. July) and the day as a 2 digit number (e.g. 24).
I am trying to use the date_format function, (new as of php 5.2) but I can't get it to work...
[PHP]
$date = "2007-06-22 00:00:00";
//I also tried $date = "2007-06-22"; but that didn't work either
//I also tried adding strtotime($date); but that didn't help!
$month = date_format($date , 'F');
$day = date_format($date, 'd');
print"$month<br>";
print"$day<br>";
[/PHP]