New to Telerik UI for ASP.NET MVC? Start a free 30-day trial
Localization
Updated over 6 months ago
The DateInput displays the date in a format depending on the selected culture (the default culture is en-US).
The following example demonstrates how to format the date in the German culture:
Razor
    <script datasrc="@Url.Content("~/lib/kendo/js/cultures/kendo.culture.de-DE.min.js")"></script>
    <script type="text/javascript">
      kendo.culture("de-DE");
    </script>
    @{
        CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("de-DE");
    }
    @(Html.Kendo().DateInput()
        .Name("dateinput")
        .Value(DateTime.Today)
    )To control the date format, use the Format() method. The specified format also will be used to parse the input.
Razor
    @(Html.Kendo().DateInput()
        .Name("dateinput")
        .Value(DateTime.Today)
        .Format("dd-MM-yyyy")
    )