Sadikhasan Sadikhasan - 1 year ago 91
PHP Question

DateTime from how make a RFC 3339

My input date is

2014-03-10 05:40:00

and convert it to RFC format like
how to covert if more information needed I provide but I want solution.

Answer Source

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 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download