TimePicker Tag Helper Overview

The TimePicker tag helper helps you configure the Kendo UI TimePicker widget in ASP.NET Core applications.

Basic Usage

The following example demonstrates how to define the TimePicker by using the TimePicker tag helper.

    <kendo-timepicker name="timepicker1"></kendo-timepicker>


The TimePicker tag helper configuration options are passed as attributes of the tag.

                .Value("8:30 AM")
                .Min("8:00 AM")
                .Max("7:30 AM")

        <kendo-timepicker name="end" value="new DateTime(1900, 1, 1, 8, 30, 0)"
            min="new DateTime(1900, 1, 1, 8, 0, 0)" max="new DateTime(1900, 1, 1, 7, 30, 0)">

The ParseFormats option is of type string[] and can be assigned either:

  • By a ViewBag property, or
  • By a property of the model.

            ViewBag.ParseDates = new string[] { "MMMM yyyy", "MMMM" };
        <kendo-timepicker name="timepicker" parse-formats="ViewBag.ParseDates"></kendo-timepicker>

See Also

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