I'm trying to parse a date like this "2020-07-01T00:00:00Z" with java LocalDateTime (in Scala) in this way:
LocalDateTime.parse("2020-07-01T00:00:00Z", ISO_INSTANT)
but I'm getting this exception:
java.time.format.DateTimeParseException: Text '2020-07-01T00:00:00Z' could not be parsed: Unable to obtain LocalDate from TemporalAccessor
What could be the problem here?
these are my libraries:
import java.time.format.DateTimeFormatter._
import java.time.LocalDateTime