How to get time zone as a String in C# ?

I need to get time zone of PC as below format.

(UTC+07:00) Bangkok, Hanoi, Jakarta

How can I get it as a string ?

Jon Skeet
people
quotationmark

Just use the TimeZoneInfo.DisplayName property:

var zone = TimeZoneInfo.Local; // For example
Console.WriteLine(zone.DisplayName);

Or for your precise example:

var zone = TimeZoneInfo.FindSystemTimeZoneById("SE Asia Standard Time");
Console.WriteLine(zone.DisplayName); // (UTC+07:00) Bangkok, Hanoi, Jakarta

people

See more on this question at Stackoverflow