Groups | Blog | Home
all groups > dotnet sdk > october 2006 >

dotnet sdk : How do I get a TimeZone object?


David Thielen
10/26/2006 2:42:01 PM
I see the class but I can't find any way to get one.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Bryan Phillips
10/27/2006 2:21:49 AM
How about using System.TimeZone.CurrentTimeZone?

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com




[quoted text, click to view]
stcheng NO[at]SPAM online.microsoft.com
10/27/2006 4:15:40 AM
Hello Dave,

As for the TimeZone, so far til .net framework 2.0, it only provide the
information of local timezone. There are some member who has created a
custom class for exposing the OS timezone list in .net class. In your
another thread the MVP has provided the following article:

#SimpleTimezone class
http://www.michaelbrumm.com/simpletimezone.html

here is another one that encapsulate the code that read timezone info from
registry in a custom class:

#World Clock and the TimeZoneInformation class
http://www.codeproject.com/dotnet/WorldClock.asp

Hope this helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

AddThis Social Bookmark Button