开发者

Get Time Zones list in c# [duplicate]

开发者 https://www.devze.com 2023-03-13 05:36 出处:网络
This ques开发者_如何学Gotion already has answers here: Closed 11 years ago. Possible Duplicate: How do I enumerate all time zones in .NET?
This ques开发者_如何学Gotion already has answers here: Closed 11 years ago.

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()
0

精彩评论

暂无评论...
验证码 换一张
取 消