PHP date function not working as expected
I am using this echo(开发者_运维知识库date("Y",'2009-10-01')); to extract the year but it only gives me the incorrect year 1970 or 1969!
What am i doing wrong.
Thanks
change to
echo(date("Y",strtotime('2009-10-01')));
and try again
精彩评论