views:

49

answers:

2

hi there

There must be a simple way to get different timezones with code (ie without changeing your system timezone) So far you can do something like

var timezone =  TimeZone.CurrentTimeZone;

but I cant see any other way to get a different timezone? or should I just use TimeSpan? Actually it seems like it s a better idea to use TimeZoneInfo

A: 

how about using TimeZoneInfo.GetSystemTimeZones ?

This should return an array of all available TimeZone objects in this system.

M.A. Hanin