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

Date Formatting

The DatePicker's default date format is month-day-year or MM-dd-yyyy. You can set a preferred date format in the Telerik UI for ASP.NET MVC DatePicker with the Format property.

The following examples demonstrate how to apply different formats in the DatePicker with the Format configuration property.

This example showcases how to apply the day-month-year format.

    @(Html.Kendo().DatePicker()
              .Name("datepicker")
              .Format("dd-MM-yyyy")
              .Value("11/10/2011")
    )

The following example demonstrates how to render a date in the year-month-day format which is common in China, Japan, Korea, etc.

    @(Html.Kendo().DatePicker()
              .Name("datepicker")
              .Format("yyyy-MM-dd")
              .Value("11/10/2011")
    )

The following example demonstrates how to render a month's full name.

    @(Html.Kendo().DatePicker()
              .Name("datepicker")
              .Format("MMMM yyyy")
              .Value("11/10/2011")
    )

You can find more information about the available formatting options in our Date Formatting article. At the client-side you are also able to format dates by using the Kendo UI kendo.toString method.

See Also

In this article