How to order a TimeZone list in .NET?
- by reallyJim
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?