What does this format means T00:00:00.000Z?

前端 未结 4 458
离开以前
离开以前 2020-12-12 15:03

Can someone, please, explain this type of format in javascript

 T00:00:00.000Z

And how to parse it?

4条回答
  •  悲&欢浪女
    2020-12-12 15:27

    Please use DateTimeFormatter ISO_DATE_TIME = DateTimeFormatter.ISO_DATE_TIME; instead of DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss") or any pattern

    This fixed my problem Below

    java.time.format.DateTimeParseException: Text '2019-12-18T19:00:00.000Z' could not be parsed at index 10

提交回复
热议问题