📜  sql server epoch to datetime - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:21.560000             🧑  作者: Mango

代码示例2
#--------------------------------SQL SERVER----------------------------------
#use this to convert forom bigint unix to datetime
#replace 1500123123 with your number
select  DATEADD(second,1500123123, CAST('1970-01-01 00:00:00' AS datetime))

#it's way better to put this in a function and call the function