How to order a TimeZone list in .NET?

Posted by reallyJim on Stack Overflow See other posts from Stack Overflow or by reallyJim
Published on 2010-02-17T18:04:22Z Indexed on 2010/04/03 5:13 UTC
Read the original article Hit count: 340

Filed under:
|
|
|

I have an ASP.NET web application that requires users to select their appropriate time zone so that it can correctly show local times for events.

In creating a simple approach for selecting the time zone, I started by just using the values from TimeZoneInfo.GetSystemTimeZones(), and showing that list.

The only problem with this is that since our application is primarily targeted at the United States, I'd like to show those entries first, basically starting with Eastern Time and working backwards (West) until I reach Atlantic time.

What's a good approach to do this in code?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about timezone