I have a number like this 1628864262422 and I wish to to convert it to datetime in SQL Server. How do I do this?
Thank you
I have a number like this 1628864262422 and I wish to to convert it to datetime in SQL Server. How do I do this?
Thank you
If you don't care about the MS, you can try
Select dateadd(SECOND,1628864262422/1000,'1970-01-01')
Results
2021-08-13 14:17:42.000