date - Convert string to timestamp in PHP using strtotime -
trying change string like
tue jun 28 15:24:51 +0000 2011
to php unix time.
found parsing twitter api datestamp strtotime returns -1 me.
echo strtotime('fri apr 09 12:53:54 +0000 2010');
any ideas? hosting problems?
thanks
this dinosaurs use php 4.4.9, code doesn't work. added
addtype x-mapp-php5 .php
and starts work:)
$date = strtotime('fri apr 09 12:53:54 +0000 2010'); echo date('d/m/y',$date); echo $date;
works me. check the php version compability:
strtotime() api
Comments
Post a Comment