yet another date parsing question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

yet another date parsing question

Post 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
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

http://www.php.net/strtotime (and also follow the link to the date input formats on that page).
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

The Z should stand for Zulu (UTC) time.
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Remove the "T" and probably the "Z" and strtotime() will parse it just fine.
Post Reply