I'm trying to parse a date String in this format: "18-Feb-23". The month is in German. I've tried this:
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("d-LLL-yy", Locale.GERMAN);
LocalDate.parse(row.soldDate,formatter),
but I get this exception:
Caused by: java.time.format.DateTimeParseException: Text '18-Feb-23' could not be parsed at index 0
I also tried d-MMM-yy but that doesn't work.