php date() outputting wrong date -


i trying code:

 date('d f y', '2013-09-14 00:00:00') 

and expecting

14 september 2013

instead, getting

31 december 1969

does make sense @ all?

you need wrap target date in strtotime() function:

date('d f y', strtotime('2013-09-14 00:00:00')); 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -