2

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

roundcrisis
  • 17,276
  • 14
  • 60
  • 92

2 Answers2

2

Related answer

Creating a DateTime in a specific Time Zone in c# fx 3.5

Community
  • 1
  • 1
Gustaf Carleson
  • 958
  • 9
  • 15
1

how about using TimeZoneInfo.GetSystemTimeZones ?

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

M.A. Hanin
  • 8,044
  • 33
  • 51