# Date Formatting

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 allows you to set the date format for displaying the date range in a specified format. You can use [Format](/componentone/api/mvc/online-mvc/dotnet-framework-api/C1.Web.Mvc/C1.Web.Mvc.InputDateBase.Format.html) property to set the standard date format or any other date format of your choice for the InputDateRange control.

![](https://cdn.mescius.io/document-site-files/images/2b3ac322-100e-4637-958d-fb40dcda3f44/images/daterange-format.png)

The following code showcases the use of **Format** property to set "dd-MMM-yy" date format for the displayed date range in the control.

```razor
@{
    var today = DateTime.Now.Date;
    var rangeEnd = today.AddDays(4);
}
@(Html.C1().InputDateRange().Id("demoControl")
        .Value(today)
        .RangeEnd(rangeEnd)
        .Format("dd-MMM-yy")
)
```