We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DatePicker Locale

Thread ID:





118277 Feb 19,2015 08:16 AM UTC Feb 20,2015 12:59 PM UTC ASP.NET MVC 1
Tags: DatePicker
Andrea Perazzolo
Asked On February 19, 2015 08:16 AM UTC

Hi, I just noticed that in the Service Pack version of the DatePicker (and DatePickerFor)

             @Html.EJ().DatePickerFor(a => a.Project.StartDate, (Syncfusion.JavaScript.Models.DatePickerProperties)ViewBag.PropsDp)
The locale and DateFormat is Ignored.
I set the locale to "en-GB" but the format is Always "MM/dd/yyyy"
This behavior happens with whe normal and the Patched version of scripts you have provided me.
With the old version of scripts the problem didn't appear.
As noted on other post, if I don't use the "setModel" method, the DatePicker does not initialize the value.even outside the Grid Inline Edit Form.

Hope there is a workaround.

    Thanks in advance

    Andrea Perazzolo 

Kasithangam C [Syncfusion]
Replied On February 20, 2015 12:59 PM UTC

Hi Andrea,

Query: Service Pack version of the DatePicker (and DatePickerFor) locale and DateFormat is ignored and DatePicker doesn’t initialize the value

We have analyzed your query and we are able to reproduce the above reported issue. We have confirmed the issue “dateFormat is not changed while set en-GB in locale and DatePicker doesn’t initialize the value”. We have logged a defect report for this issue. A support incident to track the status of this issue has been created under your account. Please log on to our support website to check for further updates.


Currently for a workaround solution, we need to set the values for “DatePicker” and “DatePickerFor” using setModel option only. Please find the below code,


    $(function () {

        var datePick = $("#datepick").data("ejDatePicker");

         var DateFor = $("#datepicker1").data("ejDatePicker");

        datePick.option("value", new Date());

         DateFor.option("value", new Date());



Also we have showcased this functionality in the below workaround solution. Please find the sample under the following location,

Sample : DatePicker Sample

Please let us know if you have further concern.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon