Hi All,
We are working on some requirement where on the UI side using a date field.
when ever we select a date from the calendar everything is working fine.
but when we manually type a random text in the date field its throwing below error.
The value XXXXX is not a valid date. Valid format is mm/dd/yyyy.
The actual date format is dd/mm/yyyy but in the validation message it says mm/dd/yyyy
kindly let me know if we can edit or change the above validation message to dd/mm/yyyy
Thanks
Discussion posts and replies are publicly visible
If your locale is not en_US and the validation is showing the message that it must be "mm/dd/yyyy" then this sounds like a bug. I'd suggest opening a support ticket.
I can reproduce this.
On my Community Edition site, I changed my locale to EN_GB, and spun up a simple interface containing just a date field.
As you can see, the placeholder text is correct (dd/mm/yyyy) :
However the validation text for invalid text entry uses the wrong format (mm/dd/yyyy), as Swetha has already advised above:
Interestingly, this disagreement does NOT seem to occur when locale is set to Mexican Spanish (for one among many potential examples)...