This is a migrated thread and some comments may be shown as answers.

Kendo UI Grid - UTC Issues

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manjit
Top achievements
Rank 1
Manjit asked on 24 Apr 2015, 05:32 PM

Hi,

 I am have been evaluating the Kendo UI for ASP.NET MVC and I have noticed a date format issue with the Kendo UI Grid when it comes to UTC Format. I have not been able to resolve this so I am hoping someone here will have a solution to this problem.

Basically I have a created date which is currently stored in the database in UTC Format and when I retrieve this date and bind it to the Kendo UI Grid, the format is coming as

Tue Apr 21 2015 21:05:35 GMT-0400 (Eastern Daylight Time)

 How can I display this date in the Eastern Daylight Time?

"April 21, 2015 5:05:35 PM"

 Please let me know if more information is required.

 

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 28 Apr 2015, 01:07 PM
Hi Manjit,

This happen because Date objects in JavaScript are always created with a local timezone offset. Please refer to the following example, which illustrates how to tackle the problem:

Regards,
Alexander Popov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
Manjit
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or