php date stripping, covert one format to another -


this question has answer here:

evening struggle moving dates between 1 format , another. simple struggling find answer on forums.

i have date

$date = "2013-08-12 00:00"; 

and want echo out

12th aug 2013 

can please

use date , strtotime:

$date = "2013-08-12 00:00"; $newdate = date('js m y', strtotime($date)); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -