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 brazilian date validation #642

Closed etcho closed 6 years ago

etcho commented 6 years ago

Adding validation (brdate) for brazilian dates, that uses the form dd/mm/yyyy. It validates length, format and if the date actually exists. Minified (production) not included.

victorjonsson commented 6 years ago

Thanks for your effort but isn't this already supported?

<input data-validation="date" data-validation-format="dd/mm/yyyy">

http://www.formvalidator.net/#default-validators_dates

etcho commented 6 years ago

My bad. I looked for it at Date Validatiors instead of Default Validators, and since I didn't find it I wrote a new one. I actually thought that this is a very common validation to be missed, but wasn't were I thought it would be. Thanks for pointing that to me!