Following code does not work:
DateTimeFormatter.ofPattern("L dd, yyyy", Locale.US).parse("December 15, 2009");
as it throws
java.time.format.DateTimeParseException: Text 'December 15, 2009' could not be parsed at index 0
How to make it work? Is it even possible using provided Locale
?? (without using additional Map that maps String
to month number.