Thursday, 12 September 2013

Get the time from {date}T{time}Z

Get the time from {date}T{time}Z

I want to get the hour and the minute from this string:
2013-09-12T11:00:00Z. How can I do this with date()? date('H:i',
strtotime('2013-09-12T11:00:00Z')) prints 13:00 and date('H:i',
'2013-09-12T11:00:00Z') prints nothing.

No comments:

Post a Comment