Dealing with Different TimeZones

4 posts, 0 answers
  1. Bo
    Bo avatar
    1 posts
    Member since:
    Jul 2011

    Posted 06 Jul 2011 Link to this post


    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!
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 12 Jul 2011 Link to this post

    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,
    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!

  3. DevCraft R3 2016 release webinar banner
  4. Paul Schofield
    Paul Schofield avatar
    1 posts
    Member since:
    Jun 2009

    Posted 13 Oct 2011 Link to this post

    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.
  5. Doresa
    Doresa avatar
    1 posts
    Member since:
    May 2011

    Posted 14 Oct 2011 Link to this post

    Can you please share the solution to your problem... Thanks
Back to Top