PDA

View Full Version : PHP Convert c to U



Valerij
September 14th, 2008, 04:08 PM
Hi guys,
Is it possible to convert ISO 8601 date to Unix timestamp?
http://no2.php.net/manual/en/function.date.php
Also from c to U according to this table...

Note that I have everything in one variable so I cant for example use the mktime(). Unless someone knows a way to spilt something like this 2008-02-19T09:16:46-08:00 into pieces :O

Ive searched google and the only results was on how to convert Unix timestamp into this, but I need it the other way...

Thanks.

eirche
September 14th, 2008, 09:52 PM
use strtotime()