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

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -