posabsolute / jQuery-Validation-Engine

jQuery form validation plugin
http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
2.57k stars 1.2k forks source link

Incompatible date format in some locales with 'future' #981

Open royas opened 3 years ago

royas commented 3 years ago

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?