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

2 Answers 2

2

Related answer

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

Sign up to request clarification or add additional context in comments.

Comments

1

how about using TimeZoneInfo.GetSystemTimeZones ?

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.