Possible Duplicate:
How do I enumerate all time zones in .NET?
How can I get the list of time zones with c#? I want a list like the one windows has.
To get all the IDs of the TimeZone in Java, we use the getAvailableIDs() method. The getAvailableIDs() method returns all the available IDs which are compatible.
The TimeZoneInfo class offers significant enhancements over the TimeZone class, which provides only limited functionality. The TimeZone class recognizes only the local time zone, and can convert times between Coordinated Universal Time (UTC) and local time.
The Time zone ID column lists time zones, in boldface, and the locations within each time zone. The Raw offset column lists the difference, in hours and minutes, between Greenwich Mean Time (GMT) and the specified time zone.
GetSystemTimeZones().
ReadOnlyCollection<TimeZoneInfo> tz; tz= TimeZoneInfo.GetSystemTimeZones();
Keep in mind that this returns a ReadOnlyCollection(T)
You can also learn how to populate a list with those timezones here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With