I have date time stored in document db database as
"myDate": "2017-06-27T15:44:35.6752016+09:30",
and my property in C# to store that datetime is below
public DateTime MYDate{ get; set; }
On my screen user can click a button which will save the information in a text file. Now information that I want to store in that text file is MyDate value as a string and another version of MyDate as a string also. This another version of MyDate can be of a different timezone. For example, I create MyDate in Australia, Melbourne now lets say I moved to America and when I click that button on client I am passing DateTimeOffset information and want to see that original date and another version in AmericanTime equivalent time. How would I solve this issue?
In .net I know we can use TimeZoneInfo.FindSystemTimeZoneById("id") but how would I pass that id information from javascript client side?