php - Convert datetime to RFC 3339 -


my input date 2014-03-10 05:40:00. how can convert rfc format 2014-3-10t05:40:00.000-00:00?

here option added in php5 this

$datetime= date("c", strtotime("2014-03-10 05:40:00")); echo $datetime;  //output : 2014-03-10t05:40:00+00:00  

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -