Why is there a difference on date shown at datepicker component?

Hi team,
I need your help to identify why the value of the date rendered at datepicker component is different from value that i`ve got from my repository?

Here is the view code:


Here is the repository data:


And here is the view rendered in browser:




Any idea?

Thank you.

5 Replies

PK Prem Kumar Madhan Raj Syncfusion Team July 5, 2018 11:23 AM UTC

Hi Danilo,   
  
Thanks for contacting Syncfusion Support.   
  
We have checked with your query and suspect that the issue may be caused due to time zone difference between the server (where the form date is obtained) and the client machine. If this is your case then we request you to update to Essential Studio version 16.1.32 or later where you can overcome this to restrict the date value conversion based on the client time zone by using the time zone API available for the DatePicker component. Please check the release notes link for further details.   
  
  
If this is not your case, then please revert with the below details to reproduce the reported issue at our end so, that we can provide an exact solution for your requirement.   


 
 
  1. TimeZone in which your machine runs.
  2. Server time zone from which date is obtained (if applicable).
  3. Code blocks for datepicker model values or Issue reproducing sample (if possible).
  4. Essential Studio version in which the issue occurs.
  
Regards,   
  
Prem Kumar M 



DA Danilo July 5, 2018 01:44 PM UTC

Prem Kumar Madhan Raj
Great!! It working fine now after update and the use of .Timezone(false).

Thank you.
Danilo.


PK Prem Kumar Madhan Raj Syncfusion Team July 6, 2018 04:44 AM UTC

Hi Danilo, 

Thanks for the update. Please let us know if you need further assistance. 

Regards, 

Prem Kumar M 



DA Danilo July 6, 2018 12:03 PM UTC

Hi Prem Kumar M,
Actually, i need to know how do i set the component to allow typing the value of date, is it possible?
I hasn't find any way to achieve this. Can you help?

Danilo.


PK Prem Kumar Madhan Raj Syncfusion Team July 9, 2018 12:36 PM UTC

Hi Danilo, 

Yes, the Date Picker component input element is editable by default and allows you to type a date value in it. Since in your sample the Date Picker control initialized with a default model value, component will be rendered with this default date value in the textbox. However, once the component has been rendered, you can clear the input element and type the date value as per your requirement. You can also cross check this with our online sample browser in the below link. 


Please let us know if you need any further assistance. 

Regards, 

Prem Kumar M

Loader.
Up arrow icon