Please help in converting 1st date format into 2nd date format.
This is just example:
2016-08-18 22:09:53
to
2016-08-18T09:20:00+08:00
I am using
$the_date = strtotime("016-08-18 22:09:53");
echo(date_default_timezone_get() . "<br />");
echo(date("Y-d-mTG:i:sz",$the_date) . "<br />");
OUTPUT
Asia/calcutta
2016-18-08IST22:09:53230
but this time format is still not similar to 2016-08-18T09:20:00+08:00
"); – sanjeev Aug 21 '16 at 17:54