How do I format this str coming from a database to something more readable.
2012-04-06T10:55:58-07:00
I would like it in the format of m-y.
I have tried
$date = date('m-y',strtotime('2012-04-06T10:55:58-07:00'));
I am stumped.
Thanks!
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.
If the time zone isn’t meaningful you can chop it off like this:
or you can go the cheap route: