wintercounter wintercounter - 1 year ago 239
PHP Question

Convert Facebook Graph API Date to UNIX timestamp

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

Answer Source

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');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download