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

Dealing with Different TimeZones

3 Answers 104 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Bo
Top achievements
Rank 1
Bo asked on 06 Jul 2011, 03:36 PM
Hello,

I have a Silverlight application in which I need to use the DateTimePicker. Based on the user's settings, the user may want to choose/view the selected time in either their local time, or UTC time. My question is, how do I toggle between the two? The value is always stored in the database in UTC format.  It seems that the DateTimePicker always shows the time local to the user. However, sometimes I want to display it as a locally converted value, and sometimes, I want it in UTC.

Can somebody please help me with this?

Thank you!

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 12 Jul 2011, 07:45 AM
Hi Bo,

In order to achieve your goal I can suggest you to set the Culture of the DateTimePicker and change it when you want the format to be different than the local setting of the user.

Hope this helps.

All the best,
Konstantina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Paul Schofield
Top achievements
Rank 1
answered on 13 Oct 2011, 06:47 PM
Is there any simple way to just disable this time zone conversion?  If the control is bound to a value 3pm, I want it to show 3pm, every time.  I don't want any kind of time zone conversion.

Edit:  Never mind, we found our problem and it was not related to the DateTimePicker.
0
Doresa
Top achievements
Rank 1
answered on 14 Oct 2011, 10:55 PM
Can you please share the solution to your problem... Thanks
Tags
DateTimePicker
Asked by
Bo
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Paul Schofield
Top achievements
Rank 1
Doresa
Top achievements
Rank 1
Share this question
or