Can any one explain to me why the line of code:
Date("l F d, Y","2013-01-25T01:42:16.411Z")
Is returning:
Wednesday December 31, 1969
And not:
Wednesday January 25, 2013
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The second parameter for
date()is a Unix timestamp, not a formatted string:I used
strtotime()to convert it to a Unix timestamp before formatting it withdate();