view raw
wintercounter wintercounter - 9 months ago 149
PHP Question

Convert Facebook Graph API Date to UNIX timestamp

How might I convert a Facebook Graph API Date to a UNIX timestamp?


I don't know the date format but I suspect it is in a common and/or standard format so strtotime() should work just fine.

$timestamp = strtotime('2012-04-24T22:01:00+0000');