Use the
TimeZoneInfo
class found in
System.Core
;
You must set the
DateTimeKind
to
DateTimeKind.Utc
for this.
DateTime MyTime = new DateTime(1990, 12, 02, 19, 31, 30, DateTimeKind.Utc);
DateTime MyTimeInWesternEurope = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(MyTime, "W. Europe Standard Time");
Please refer:
Converting Times Between Time Zones[
^]
also check similar discussion:
C#: Making sure DateTime.Now returns a GMT[
^]