DatePicker Tag Helper Overview

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

Basic Usage

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

    <kendo-datepicker name="datepicker1"></kendo-datepicker>


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

                .Format("MMMM yyyy")

        <kendo-datepicker name="monthpicker" start="CalendarView.Year" depth="CalendarView.Year"
            format="MMMM yyyy" value="DateTime.Now">

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

See Also

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