Demos
Documentation
API
More Samples
Download Wijmo

InputDate Validation

The InputDate control prevents users from selecting values outside the range determined by the min and max properties.

In many cases, however, not all dates in the range are valid. To handle these situations, the control has an itemValidator property. This property represents a function that takes a date as a parameter and returns true if the date is valid for selection, or false otherwise.

The InputDate below demonstrates this. It prevents users from selecting dates on weekends and holidays: