We help IT Professionals succeed at work.

SQL Server:  how to convert an integer to a date value

350 Views
Last Modified: 2012-02-10
I have a SQL Server database which is using an integer field to track a date value.  I have seen something similar in Oracle where the integer value was some number of seconds since the epoch (1970).  I believe what I am looking here is the same thing but I don't know the syntax to convert these value to a date format.  Below are some sample values.

978441325
978443839
978445765

Can someone tell me how to figure out what date these number represent?

Thanks.
Comment
Watch Question

Top Expert 2011
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.