I can't seem to find this answer.
what would be the php code for having date in this following format:
2012-11-29
$date = new DateTime();
$date = $date->format('F j, Y');
This give me in November 29, 2012
I can't seem to find this answer.
what would be the php code for having date in this following format:
2012-11-29
$date = new DateTime();
$date = $date->format('F j, Y');
This give me in November 29, 2012
$date = new DateTime();
$date = $date->format('Y-m-d');