I have a dropdown list of timezones based of of .NET method System.TimeZoneInfo.GetSystemTimeZones
provided from my MVC controller. What I would like to do is capture the user's timezone (client side) and default the dropdown list to their timezone.
On both Chrome and Firefox when I type in new Date()
to the console I can get a string like Fri Jan 24 2020 08:50:02 GMT-0500 (Eastern Standard Time)
Other than parsing between the parentheses, is there a way to get the timezone string Eastern Standard Time?