Why 2020-07-25T08:00:00.000Z is not a correct date format

Marco Dinatsoli :

A simple question but I didn't find an answer.


gives error

Text '2020-07-25T09:00:00:000Z' could not be parsed at index 19

Though :




Same format

Could you help?

Cascader :

It should be 2020-07-25T09:00:00.000Z

Notice the FULL STOP . used before milliseconds. You incorrectly have a COLON : character there.

According to the docs:

The string must represent a valid instant in UTC and is parsed using DateTimeFormatter.ISO_INSTANT.

Instant.parse( "2020-07-25T09:00:00.000Z" )

See that code run live at IdeOne.com.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at


Login to comment


How to get date from 2020-02-27T15:00:43+0000 format

Javascript: How to get 2020-05-15T05:00:00Z format date string?

Convert to Date Time Format "2020-02-11T17:26:31-05:00"

Convert "2020-10-31T00:00:00Z" String Date to long

what's this date format ? 2006-09-01T07:00:00.000+0000 ? is it ISO_8601 ?

Format date string with .000Z into NSDate

13-07-2018 00:00 Date Format in store procedure in Oracle

java.text.ParseException: Unparseable date: "2018-07-22T14:00:00-03:00"

How to convert "2019-11-30T07:00:00+09:00" date into integer?

date_format doesn't handle timestamp with `00:00:00`

java.text.parseException: Unparseable date : 2020-02-06T08:00:00

Getting 2020-02-29T00:00:00.000Z for March using momentjs or Date()

Turn string "12/27/2020 00:00:00" into a date?

Why does parsing "0000:00:00 00:00:00" into a Date return -0001-11-28T00:00:00Z?

Date format in javascript with time 00:00:00

What is the correct way in C# to parse this date format "Mon Oct 07 00:00:00 EDT 2013"?

Parse time format "2015-07-14T09:00:00:+08:000" return nil

"2016-09-07T13:00:00.000Z" could not find date format

why new Date("Tue Apr 08 2008 00:00:00 GMT+0530").getMonth() is returning 3

How to format elapsedTime start at 00:00:00 instead of the default 07:00:00 in Swift

how to convert 2015-03-25T12:00:00Z date format into Mar 25 2015 12:00:00 in Javascript?

What is the best way to convert this date format "2019-11-07T13:30:00+05:30" to utc date?

convert Date format like this Fri Apr 20 2020 00:00:00 GMT+0530 (India Standard Time) to 2020-04-20T00:00:00.000Z in Javascript

DateFormat Flutter I am fetching date form json api "2020-04-18T00:00:00" in this format but i want in this format "dd-mm-yyyy"

How to have this format "2020-08-08T03:20:14.362+00:00"

Convert Wed Oct 14 08:00:00 CDT 2020 format to DateOnly and Time Only

how can I convert a date string in the format "1969-03-07T05:00:00.000Z" to the output normally provided by new Date()

how to change date format 2021-30-06T05:00:00+07:00 in swift?

Kotlin - Unparseable date: "2021-07-20T12:35:07-07:00"