Answers for "how to convert utc to est in sql"

SQL
6

convert utc to est sql

select CONVERT(datetime, SWITCHOFFSET(dateTimeField, DATEPART(TZOFFSET, 
dateTimeField AT TIME ZONE 'Eastern Standard Time')))
Posted by: Guest on March-21-2020
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']
Posted by: Guest on December-17-2020

Code answers related to "how to convert utc to est in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language