Form Validation
Guide
Validators
Plugins
Examples
Updates
Purchase
Validating date range
The following form asks you to enter a date in the range of 2000/01/01 and 2020/12/30. It can be implemented by using the
min
and
max
options.
Validating date range
You also can use the
callback validator
and
isBefore()
,
isAfter()
methods provided
momentjs
to check if the date is in the range.
Validating date range using the momentjs library
Use the
StartEndDate plugin
if you want to validate start and end dates
See also
callback validator
date validator
Disabling date
Integrating with Bootstrap Datepicker
Integrating with flatpickr
Supporting custom date format
Validating multiple inputs as one