My input date is 2014-03-10 05:40:00. How can I convert it to RFC format like 2014-3-10T05:40:00.000-00:00?
2014-03-10 05:40:00
2014-3-10T05:40:00.000-00:00
here another option added in php5 like this
$datetime= date("c", strtotime("2014-03-10 05:40:00")); echo $datetime; //Output : 2014-03-10T05:40:00+00:00