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.

How to set to false the time-zone

Thread ID:





141617 Dec 21,2018 04:33 AM UTC Dec 21,2018 06:23 PM UTC jQuery 2
Tags: ejDatePicker
Asked On December 21, 2018 04:33 AM UTC

How can I set to false the timeZone property via javascript not via tag helper, something like:


<ej-date-picker id="startDate" value="DateTime.Now" time-zone="false"></ej-date-picker>

Javascript ?
timeZone: false  // I just tried to guess :)

Deepa Loganathan [Syncfusion]
Replied On December 21, 2018 06:07 PM UTC

Hi Eduardo,  
Thanks for contacting Syncfusion support.  
The Timezone API of Datepicker is used to control the conversion of Date values to its equivalent UTC date to avoid differences in Timezone across different cultures. Since this conversion is done at server, you need to define the Timezone API in the wrapper itself to store the Date values as UTC Date in the server.  
Whereas, setting the Timezone in Javascript will only let you convert the received UTC converted date from server to the client Time zone to be displayed in the browser.  
In short, setting Timezone in wrapper will convert the posted date from client to UTC, to be saved in server and setting Timezone in Javascript will convert the Date value received from server to equivalent client Timezone to be displayed in the browser.  
Deepa L. 

Deepa Loganathan [Syncfusion]
Replied On December 21, 2018 06:23 PM UTC

Hi Eduardo,  
Also, you can set the TimeZone API of Datepicker in Javascript as given below.  
                timeZone: true 
Please get back to us if you have any further queries. 
Deepa L. 


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