Changed date format to suit JSON