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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Cannot change value of DateTimePicker in locale format

Thread ID:





149475 Nov 27,2019 08:57 AM UTC Jan 31,2020 11:04 AM UTC jQuery 2
Tags: ejDateTimePicker
Toke Wivelsted
Asked On November 27, 2019 08:57 AM UTC

I have two DateTimePickers that need to talk together, but I am having problem programatically changing the values of them.
If I try to set the value of a DateTimePicker to "27/11/2019 16:00" the input-field of the picker is cleared and the watermark text is shown.
If I instead use "27-11-2019 16:00" the value is displayed correctly, but this is not the format defined for the control and this is not the format I want to display to the user. The displayed format reverts correctly if I change the date in the control with user input.

I have my DateTimePickers set up with the following rules:

            locale: "da-DK",
            dateTimeFormat: "dd/MM/yyyy HH:mm",
            width: "auto",
            height: 35,
            value: $('#StartDate').attr("defaultvalue"),
            watermarkText: "Vælg",
            buttonText: {
                timeNow: "Klokken nu"
            change: DateTimePickerChanged,
            focusIn: DateTimePickerFocused

function DateTimePickerFocused(args) {
       var dateObj = $('#' + args.model.name).ejDateTimePicker('instance');

function DateTimePickerChanged(args) {
    // the newly selected date may invalidate the other datetimepicker control
    // in that case, change the value of the other control
    // ... code omitted

   $(selector).ejDateTimePicker({ value: '27/11/2019 16:00'});  // setting this value on a datetimepicker fails   

Keerthana Rajendran [Syncfusion]
Replied On November 29, 2019 09:09 AM UTC

Hi Toke, 
Greetings from Syncfusion support.  
We have validated your reported problem “Unable to change the value of DateTimePicker with locale formatand confirmed this as a defect in our end. We will fix this issue and include in our Volume 4, SP1 release which is expected to be rolled out by the month of January 2020. We appreciate your patience until then.  
You can track the status from the below feedback portal link.  

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On January 31, 2020 11:04 AM UTC

Hi Toke, 
Sorry for the inconvenience. 
Due to some technical complexities, we are unable to include this fix in 2019 Vol4 SP1 release. 
Fix for this issue will be included in Volume 1 main release which is expected to be rolled out at the end of March 2020. 
However, we have prepared a custom patch with the fix for the reported issue in DateTimePicker component. Please, make use of them to resolve the reported issue at your end. 
HTTP Link: 
HTTP Link (Nuget): 
We will appreciate your patience till then. 
Shameer Ali Baig S. 


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

Live Chat Icon For mobile
Live Chat Icon