Table (EVENTS) definition:
ID bigint, EVENTTIMESTAMP bigint
3361592, 132446022372460000
How can T convert this to date time stamp?
I know from another UI that the date time stored is 15-September-2020 10:10:37 AM
.
Can I get how to convert this using SQL queries for SQL Server?
What I tried:
SELECT *, CONCAT
(
CAST(DATEADD(SECOND, EVENTTIMESTAMP/100000000 ,'1970/1/1') AS DATE)
,' '
,CAST(DATEADD(SECOND, EVENTTIMESTAMP/100000000 ,'1970/1/1') AS TIME)
) EVENTTIME
FROM EVENTS
where ID = '3361592';