victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

Adding validations for minimum and maximum dates #662

Open etcho opened 6 years ago

etcho commented 6 years ago

Changing the date validation function, adding optional attributes min-date and max-date. If informed, it sets an allowed range for the date. It checks following this order: valid date, minimum date, maximum date. Both data-validation-min-date and max-date should be informed using the same format as the field (yyyy-mm-dd as default or any format informed through data-validation-format). English and portuguese locales are ok. The other ones are untranslated.

Requested on issue #656

Amedeo91 commented 4 years ago

Feel free to raise your PR here: https://github.com/Amedeo91/jQuery-Form-Validator