i want a very simple format to parse using datatimeformatter for the following:
1 1 1976 this is in d M yyyy format
What works:
val format = new SimpleDateFormat("d M yyyy")
format.parse("1 1 1976")
but
val format = DateTimeFormatter.ofPattern("d M yyyy")
LocalDateTime.parse("1 1 1976", format)
throws
'1 1 1976' could not be parsed: Unable to obtain LocalDateTime from TemporalAccessor: {},ISO resolved to 1976-01-01 of type java.time.format.Parsed
not sure what is the best way to use Java 8 time in my case