Given a UTC date time (see the utc variable below) and a timezone Offset value (see the timezoneOffsetMilliSeconds variable below), how do can I get time zone information of the original user date time input?
Details of what I am doing and want to do more:
var originalUserInput = DateTime.Now; // got from user input as original input.
decimal timezoneOffsetMilliSeconds = 18000000; // Example: "Central Standard Time" time zone off set. Got from user input.
var utc = originalUserInput .AddMilliseconds((double)timezoneOffsetMilliSeconds); // convert to UTC date time to store into database.
var backToUserInput = utc.AddMilliseconds((double)-timezoneOffsetMilliSeconds); // got from database for UTC date time and convert it back to original user input
My question: how can get user's time zone information (e.g. "Central Standard Time", "CST", or the like
) from database-stored utc and stored timezoneOffsetMilliSeconds values?
Thank you
