Convert ISO 8601 to unixtimestamp

Codler picture Codler · Jan 18, 2012 · Viewed 31.2k times · Source

How can I convert 2012-01-18T11:45:00+01:00 (ISO 8601) to 1326883500 (unixtimestamp) in PHP?

Answer

k102 picture k102 · Jan 18, 2012
echo date("U",strtotime('2012-01-18T11:45:00+01:00'));