SET
@UTCDate = DATEADD(
hour
, DATEDIFF(
hour
,GETDATE(),GETUTCDATE()), @LocalDate)
SET
@LocalDate2 = DATEADD(
hour
, DATEDIFF(
hour
,GETUTCDATE(),GETDATE()), @UTCDate)
原文地址:https://www.cnblogs.com/johnblogs/p/8436387.html
时间: 2024-11-09 00:29:27