M
M
Michail2019-03-05 21:55:24
Java
Michail, 2019-03-05 21:55:24

How to convert date string to LocalDate?

Hello, there is a string - 1955-04-21T20:37:04Z
What is this format and how can I convert it to LocalDate.

DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MMM-ddThh:mm:ss");

what to indicate?
ISO_INSTANT - does not work.
5c7ec7f66844a147996666.png
Text '1992-06-29T03:58:29Z' could not be parsed: Unable to obtain LocalDate from TemporalAccessor: {MicroOfSecond=0, NanoOfSecond=0, MilliOfSecond=0, InstantSeconds=709790309},ISO of type java.time.format .Parsed
Why is this happening? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Michail, 2019-03-05
@Michail_04

https://stackoverflow.com/questions/25612129/java-...

D
Dimonchik, 2019-03-05
@dimonchik2013

mmmm where did you find it?
and this is a separate cauldron in hell for screenshots

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question