Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Converti millisecondi UTC in DATETIME nel server SQL

DECLARE @UTC BIGINT
SET @UTC = 1348203320997 

SELECT DATEADD(MILLISECOND, @UTC % 1000, DATEADD(SECOND, @UTC / 1000, '19700101'))