Ok I have an issue where I want a user interface to enter date/time for an arbitrary location on Earth. Basically I can put in my system some sort of location information to allow me to calculate the timezone for that "place". I want my UI to display the datetime entered in the location's relevant timezone setting for that specified date.
Is there a .NET API for calculating what the timezone is for a location at a specified datetime? I don't want the current timezone. I want the timezone for a specified DateTime.
E.g. in Australia AEDST, in Sydney, TZ is +11GMT today. 3 months ago it was AEST ie +10GMT. If someone enters a DateTime in of say 15/07/2020 09:00:00, I want the control to display that exact DateTime but I will store 15/07/2020 09:00:00+10:00. How do I determine what timezone Sydney had at that date?
EDIT: solution needs to be offline