I'm wondering if it's possible at all to parse a string to a LocalDate object including a formatter such as "d/M/YYYY" (specifically including the "YYYY").
It seems a JsJodaException is thrown in the console when attempting to parse this, however when formatting from a JS-Joda Temporal object to a string using the same format, it works just fine?
I understand I can use "yyyy" in place of "YYYY" - but with business constraints, I cannot do this.
The console error I get has the message of the following (an example): "Text '10/3/2023' could not be parsed"
I tried using
LocalDate.parse("10/3/2023", DateTimeFormatter.ofPattern("d/M/YYYY").withLocale(Locale.ENGLISH));
However this doesn't seem to work.
In the function that does the parsing, replace uppercase Y with lowercase Y in the format string that is passed to the function