string - Format a date for PHP -


this question has answer here:

i have date:

mon, 31 mar 2014 12:19:10 gmt

how can convert format:

date('y-m-d h:i:s')

i have found this:

$time = strtotime('10/16/2003');

$newformat = date('y-m-d',$time);

but how convert 'mar' '03', can use that?

how using datetime

$date = new datetime("mon, 31 mar 2014 12:19:10 gmt");  echo $date->format("y-m-d h:i:s"); 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -