[Validator] Option to specify the format for validating dates? #50649
simondeeley
started this conversation in
Polls
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the Validator component's "Date" (link) validator only validates inputs with the format
Y-m-d
. Whilst this is perfectly fine for general international use, I am finding that client-side a lot of dates are inputted in locale-specific formats, e.g.d-m-Y
.Is there enough interest to add the option to specify the date format? Or, going one-stage further, add the ability to specify an array of valid date formats?
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions