convert time zone sql code example
Example 1: sql server utc to local
SELECT
['TIME COLUM TO CONVERT'] AS [UTC_TIME],
DATEADD(hh, DATEDIFF(hh, GETUTCDATE(), GETDATE()),['TIME COLUM TO CONVERT']) AS [lOCAL_TIME]
FROM ['TABLE NAME']
Example 2: tsql utf to local time
select
[MyUtcDate] + getdate() - getutcdate()
from [dbo].[mytable]