You can use the MaxDate
properties to specify a range for
the datepicker control. If the user tries to enter a value that is
greater than the value of the MaxDate property or less than the MinDate
property, the date input control signals the user that there is a
problem by applying the "error" CSS style and does not update its value.