Date Ranges

The following example demonstrates how to create a Calendar with a selected date and a defined minimum and maximum dates.

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


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


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

See Also

In this article
Not finding the help you need? Improve this article