How to get Time Zone Ids in C#

Jak
Jak
Member
364 Points
152 Posts

How to get Time Zone Ids in C#?

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

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Admin
404 Points
67 Posts
         
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
 Log In to Chat