DateTimePicker Tag Helper Overview

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

Basic Usage

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

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


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

                .Events(e => e.Change("endChange"))
        <kendo-datetimepicker name="end" value="DateTime.Today"
            min="DateTime.Today" on-change="endChange">

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-datetimepicker name="datetimepicker" parse-formats="ViewBag.ParseDates"></kendo-datetimepicker>

See Also

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