开发者

Get Time Zones list in c# [duplicate]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜