How should I convert historic local time to UTC taking into account of daylight saving?
The main problem is the daylight saving doesn't occur at a fixed period every year and hence I cannot think of a way to do this task.
How should I convert historic local time to UTC taking into account of daylight saving?
The main problem is the daylight saving doesn't occur at a fixed period every year and hence I cannot think of a way to do this task.
See https://github.com/mj1856/SqlServerTimeZoneSupport by Matt Johnson for Sql Server 2008R2+.
from_tz only marks datetime with the timezone. Operator for converting the value is AT TIME ZONE . It was introduced in Sql Server 2016.
– Serg
Jun 24 '16 at 07:07