I managed to parse a String
to a LocalDate
object:
DateTimeFormatter f1=DateTimeFormatter.ofPattern(\"dd MM yyyy\");
LocalDate d=Lo
If you use a specific format, according to API:
The string must represent a valid time and is parsed using DateTimeFormatter.ISO_LOCAL_TIME.
hh mm
for 24h must be
HH mm
or for 12h
kk mm
The handled formats must have this conditions: