The DatePicker provides options for displaying date ranges.
You can control the range of dates by setting the
max properties. When the
max properties are configured and the selected date value is out of this range, the component triggers a validation error.
Alternatively, to prevent typing an out-of-range value, you can render the input in a read-only state, allowing the user to choose a value only from the popup Calendar (see example).