How to convert seconds to datetime? I try this, but results are not correct:
datetime
CONVERT(datetime, DATEADD(ms, dateTimeInSeconds, 0))
Given your example, try this:
select DATEADD(s, dateTimeInMilliseconds, '19700101')