When I pull the date out of the db, it comes back like this:
2009-10-14T19:00:00
I want to format it in two different ways…
The first: F d, Y
The second h:m (12 hour format)
Everything I try returns December 1969… Help?! I feel so confused…
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.
Normally the code is just:
Note that if
strtotime()can’t figure out the date, it returns the time as 1/1/1970 00:00:00 GMT.