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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -