How do I convert my time from 2010-12-30 23:21:46 to ISO 8601 date format?
I tried $datetime->format(DateTime::ATOM)
and date(DATE_ISO8601, strtotime('2010-12-30 23:21:46'))
which converts into ISO8601 format like 2016-12-31T09:47:50+0000
. But what i need is 2018-02-19T05:43:59.753000Z
format. How can i achieve using PHP??