Jump to content

Date Formatting


Recommended Posts



Simple question, how do I reFormat a date.


$dateCreated  (2012-01-14)


to become:  14th jan 2012



So far I have this, but it's not working:

$expDate = explode('-',$dateCreated);
$date1 = mktime(0, 0, 0, date('m', $expDate[1]), date('d', $expDate[2]), date('Y', $expDate[0]));
$date = date('d m Y', $date1);




Thanks :)

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.