I use the following code:
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy MMM dd");
LocalDate date = LocalDate.parse(s, formatter);
to parse date strings, e.g. "2019 Feb 25". But I also want this code to parse strings like this: "2019 February 25". Can I somehow change the format string "yyyy MMM dd" to achieve this?
I tried the following format strings "yyyy MMMM dd", "yyyy MMM[M] dd", "yyyy [M+] dd", but I can't make it parse both "2019 Feb 25" and "2019 February 25".