Page 1 of 1

yet another date parsing question

Posted: Wed Nov 15, 2006 1:10 pm
by pedrotuga
Which function should i use to parse this date?

Code: Select all

2006-11-15T06:02:00Z
BTW.... does anybody knows what's this format called and whats the Z doing in the end?
thank you

Posted: Wed Nov 15, 2006 1:15 pm
by timvw
http://www.php.net/strtotime (and also follow the link to the date input formats on that page).

Posted: Wed Nov 15, 2006 1:25 pm
by aaronhall
The Z should stand for Zulu (UTC) time.

Posted: Wed Nov 15, 2006 3:50 pm
by pedrotuga
timvw wrote:http://www.php.net/strtotime (and also follow the link to the date input formats on that page).
strtotime doesnt parse it, forgot to mention that on the opening message.

Posted: Wed Nov 15, 2006 3:52 pm
by feyd
Remove the "T" and probably the "Z" and strtotime() will parse it just fine.