Example of Date Range in ASP.NET MVC DateTimePicker Control
This example demonstrates date and time selection within specific ranges defined by the Min
, Max
, MinTime
, and MaxTime
properties. Dates and times outside these ranges are restricted
and cannot be set or selected.
DEMO
SOURCE
Date Range example explains the date and time selection within the specific range in a calendar and time popup list by using Min
, Max
, MinTime
and MaxTime
properties. Here, the 1st datetimepicker date selection range was restricted within a range from 7th 10:00 AM to 27th 10:30 PM days in a month.
The 2nd datetimepicker time selection range is restricted from 10:00 AM to 8:30 PM of each day.
More information on the datetime range configuration can be found in the documentation sectionopens in a new tab.