# Date Ranges

You can create a Calendar with a selected date and define a minimum and a maximum date.

As a result, the Calendar does not navigate to a date that is earlier than the specified minimum date and also restricts the navigation up to the maximum date you specified.

```Razor HtmlHelper
   @(Html.Kendo().Calendar()
            .Name("calendar")
            .Value(DateTime.Now)
            .Min(new DateTime(1950, 1, 2))
            .Max(new DateTime(2049, 12, 31)))
```

```Razor TagHelper
    <kendo-calendar name="calendar"
                    value="DateTime.Now"
                    min="new DateTime(1950, 1, 2)"
                    max="new DateTime(2049, 12, 31)">
    </kendo-calendar>
```

## See Also

* [Server-Side API](https://www.telerik.com/aspnet-core-ui/documentation/api/calendar)
