I need to convert a date string in a format like bellow using PHP,
2015-07-30T08:05:00.917Z
I try to convert using the bellow code,
echo str_replace('+00:00', '.917Z', gmdate('c', strtotime('2016-04-05 00:00:00')));
This will create 2016-04-05T00:00:00.917Z
This is not correct,Is there any function to create date like this format?