wintercounter wintercounter - 4 months ago 66
PHP Question

Convert Facebook Graph API Date to UNIX timestamp

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

Answer

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');