Unifies date format to json.

For some reason it now includes millisecond.