Date picker century guessing not working

0
Hi,   I have a strange issue in Mendix version 10.12.6 with the standard date picker element. I'm using de dd-MM-yyyy format and when typing the year in yy format (e.g. 24), it's automatically adjusting the year to 1924. With the 50/50 rule I would expect 2024 instead of 1924. Do you have any idea what could be the issue and how to solve it?   I look forward to hear from you!   Kind regards, Maarten
asked
4 answers
0

Tested this in a 9 version and 10.3.1 version and this works as you expect it to work. So typing 01-01-24 will be changed to 01-01-2024. I suspect this to be a bug in the Mx version yoou are using and suggest filing a ticket with Mx support.

answered
1

I have found the solution for this, posting it here to helps anyone who encounters the same issue. Somehow the default formatting in version 10.12.6 for the Dutch language is dd-MM-y. I changed it manually to dd-MM-yyyy and it's working fine now.

answered
1

Did you happen to change the Java version during this upgrade?

I recently upgraded from Java 11 to Java 21 and noticed that the default date format for Dutch changed to dd-MM-y. Thanks to your suggestion, I was able to fix it by manually overriding the format though!

answered
0

Yes, the change in the default date format is indeed due to the upgrade from Java 11 to Java 21. Java 21 introduced some updates to regional and locale-specific defaults, which likely caused the switch to dd-MM-y for Dutch formatting. Glad I could help you resolve it by overriding the format manually!

answered