Tag Archives: enumerate time zones

List timezones in C#

This simple example uses the following code to display the defined timezones. // Load the timezone information. private void Form1_Load(object sender, EventArgs e) { foreach (TimeZoneInfo info in TimeZoneInfo.GetSystemTimeZones()) lstTimezones.Items.Add(info); } This code simply loops through the TimeZoneInfo objects returned … Continue reading

Posted in internationalization, system | Tagged , , , , , , , , , , , , , , , | 1 Comment