I am trying to convert the 10 digit unix timestamp value to proper yyyy-mm-dd hh:mm:ss format using the code in Microsoft SQL server
Update data
set Time_final= dateadd(S,[unix_date], '1970-01-01 00:00:00.0')
from data
But I am not getting the output in the desired format. For example:
for the value 1599313801 which we are supposed to get 2021-04-17 14:25:59, I am getting 13:50:01.0000000