php output date in z format code example
Example: date format with t and z php
str_replace('+00:00', '.000Z', gmdate('c', strtotime('2013-05-07 18:56:57')))
str_replace('+00:00', '.000Z', gmdate('c', strtotime('2013-05-07 18:56:57')))