# Day Range

Develop powerful and lightweight web applications using ASP.NET MVC controls. Learn more about the ComponentOne MVC controls in ASP.NET MVC documentation.

## Content



InputDateRange lets you to customize the dropdown calendar to show a limited set of days in the visible calendar month(s) and restrict the selection to the specified range of dates from the calendar. This can be done using the [RangeMin](/componentone/api/mvc/online-mvc/dotnet-framework-api/C1.Web.Mvc/C1.Web.Mvc.InputDateBase.RangeMin.html) and [RangeMax](/componentone/api/mvc/online-mvc/dotnet-framework-api/C1.Web.Mvc/C1.Web.Mvc.InputDateBase.RangeMax.html) properties. The **RangeMin** and **RangeMax** properties allow you to limit the minimum and maximum number of days to be displayed in the selected date range at runtime, respectively.

**![](https://cdn.mescius.io/document-site-files/images/2b3ac322-100e-4637-958d-fb40dcda3f44/images/inputdaterange-day-range.gif)**

The following code uses the RangeMin and RangeMax properties to display a minimum three days and maximum five days in the selected date range in the control:

```csharp
@{
    var today = DateTime.Now.Date;
    var rangeEnd = today.AddDays(3);
}
@(Html.C1().InputDateRange().Id("demoControl")
        .CloseOnSelection(false)
        .SelectionMode(DateSelectionMode.Range)
        .Value(today)
        .RangeEnd(rangeEnd)
        .RangeMin(3)
        .RangeMax(5)
)
```