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

Changing the TimeZone of the DateTime fields

1 Answer 484 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Silviu
Top achievements
Rank 1
Silviu asked on 11 Jul 2017, 02:19 PM

I have a RadGrid displaying data from a SQL DB in which the datetime is UTC.

I would like for the RadGrid to automatically change this datetime so it matches the client's timezone.

How can that be achieved?

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 14 Jul 2017, 09:07 AM
Hello Silviu,

The Grid by design displays the dates as is. Changing the dates on the client would require JavaScript implementation, similar to the one suggested in GridDateTimeColumn to localtime forum thread. 

For an alternative solution, you could consider using, is suggested in the following resources: 
Regards,
Peter Milchev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Silviu
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or