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.

You also can use the callback validator and isBefore(), isAfter() methods provided momentjs to check if the date is in the range.

Tip

Use the StartEndDate plugin if you want to validate start and end dates

More examples

Related validators

The following validators might be useful to you.