Monday, 12 August 2013

Php date convertsion

Php date convertsion

Hi guys i have a problem by converting a date in proper format. I searched
and found a lot of awnsers but none of them worked for me. I get the Time
form facebook api in this format: 2013-08-23T09:00:00 I then $fbdate =
date('2013-08-23T09:00:00'); When i echo $fbdate it retuns
2013-08-25UTC05:00:00 Then i tried:
$datum = date("d.m.Y",$fbdate);
$uhrzeit = date("H:i",$fbdate);
To extract the date and the time but it always returns: 01.01.1970 for
$datum and 00:33 for $uhrzeit
Thanks for Help, Simon

No comments:

Post a Comment