Dobermaxx99
Dobermaxx99

Reputation: 318

How to remove TIME on Epoch in SQL Server

How to remove TIME on Epoch format in SQL Server?

Example: 2713795200000 should return Thu, 30 Dec 2055 00:00:00 instead of Thu, 30 Dec 2055 16:00:00 GMT.

Upvotes: 0

Views: 353

Answers (1)

Sandeep Kumar
Sandeep Kumar

Reputation: 1202

You can use below query for your problem. May be its helps you.

SELECT  DATEADD(DAY, (2713795200000)/(1000*60*60*24), '19700101')

Upvotes: 0

Related Questions