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
Post a Comment