Get Time Zones list in c# [duplicate]
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.
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.
You can use TimeZoneInfo.GetSystemTimeZones()
.
TimeZoneInfo.GetSystemTimeZones()
精彩评论