New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Start and End Time

Updated over 6 months ago

The DateTimePicker enables you to customize the start and end time of the built-in TimePicker.

To define the earliest and latest available time in the built-in TimePicker, use the StartTime and EndTime options.

Only the time part of the provided DateTime object is taken into account.

Razor
 @(Html.Kendo().DateTimePicker() .Name("datetimepicker") .StartTime(new DateTime(2023,3,3,8,30,00)) .EndTime(new DateTime(2023,3,3,17,00,00)) .Label(label => { label.Content("Remind me on"); label.Floating(true); }) .HtmlAttributes(new { style = "width: 100%", title = "datetimepicker" }) )

See Also

In this article
See Also
Not finding the help you need?
Contact Support