13 Jun 20232 minutes to read

Essential ASP.NET MVC DatePicker has been provided with built-in localization support, so that it will be able adapt based on culture specific locale defined for it.

More than 350 culture specific files are available to localize the date. To know more about EJ globalize support, please refer the below link


Seven culture-specific script files are available in the below specified location. For all other culture files, please download from the GitHub location.

(installed location)\Syncfusion\Essential Studio\21.1.35\JavaScript\assets\scripts\i18n For example, If you have installed the Essential Studio package within C:\Program Files (x86), then navigate to the below location, C:\Program Files (x86)\Syncfusion\Essential Studio\21.1.35\JavaScript\assets\scripts\i18n

To translate our control content from default English to any of the culture, say For example - German language, then you need to refer the file in your application,

The en-US locale is currently being used as default culture in DatePicker. You can set any other culture to DatePicker by using Locale property. Below code example shows German cultured DatePicker.

Refer the below German culture file in head section of HTML page after the reference of ej.web.all.min.js file.

  • <script src=""></script>

    Set German culture to DatePicker at initialization.

  • @Html.EJ().DatePicker("datePicker").Value(System.DateTime.Now).Locale("de-DE")

    Watermark and Today Button Text

    By default the EJMVC DatePicker input has “select date” as watermark text, you can change this value by using WatermarkText property. Also there’s a today button in DatePicker calendar which allows you to quick select the current date, you can change this value by using ButtonText property.

  • @*sets watermark text and button text*@
        @Html.EJ().DatePicker("datePicker").Value(System.DateTime.Now).WatermarkText("enter the date value").ButtonText("current date")

    Based on culture specific, only date gets localized but by changing the watermark and button text, you can completely localize the DatePicker UI too.

    Refer below code example to update those value based some culture say for example English and German.

  • JS
  • //create instance for datePicker.
        // only after control creation we can get dateObj otherwise it throws exception.
        var dateObj = $("#datePicker").ejDatePicker('instance');
        //condition to check English culture and change watermark and button text using dateObj.
        if ( == "en-US") {
            dateObj.option({ buttonText: "Today", watermarkText: "select date" })
        //condition to check German culture and change watermark and button text using dateObj.
        if ( == "de-DE") {
            dateObj.option({ buttonText: "heute", watermarkText: "Datum auswählen" })