jQuery-Validation-Engine icon indicating copy to clipboard operation
jQuery-Validation-Engine copied to clipboard

Incompatible date format in some locales with 'future'

Open royas opened this issue 5 years ago • 0 comments

I'm submitting a...


[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request

Current behavior

For example in 'es' language, 'date' validator requires format DD/MM/YYYY, but 'future' validator treats it as Y/M/D and performs wrong calculations.

Expected behavior

I think that extracting format from 'date' to use in 'future' could be a little tricky, but maybe suppor some kind of a format hint in 'future' validator?

royas avatar Nov 21 '20 01:11 royas