How to get Time Zone Ids in C#

Jak
Jak
Member
352 Points
151 Posts

How to get Time Zone Ids in C#?

Views: 8139
Total Answered: 1
Total Marked As Answer: 1
Posted On: 27-Dec-2014 21:22

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Admin
408 Points
69 Posts
Marked as answer      
Hi, Rahul Maurya
Use following code:

ReadOnlyCollection<TimeZoneInfo> zones = TimeZoneInfo.GetSystemTimeZones();

string ZoneID; foreach (TimeZoneInfo zone in zones) { ZoneID=zone.Id;}
Posted On: 28-Dec-2014 08:58
banner

Blog

Active User (2)

 Log In to Chat