Hi I know that is not directly related with kotlin...
# announcements
a
Hi I know that is not directly related with kotlin but does anyone know why
LocalDate.parse("2000-02-31", DateTimeFormatter.ofPattern("yyyy-MM-dd"))
parses to
2000-02-28
?
s
It parses to Feb 29 on my machine, which makes sense since 2000 was a leap year
also #C09222272 next time, maybe
the parser takes a
dd
value within
01-31
and wraps it to whatever the last day of the month actually is
>31
is always out of range, so you get a
DateTimeParseException
instead