Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 changing number to date

Author  Topic 

JJins
Yak Posting Veteran

81 Posts

Posted - 2011-08-31 : 09:58:13
In excell you just highlight row formate cell to date and poof you got it.

How to I take these number in SQL and turn them into the formate of a date?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-31 : 10:09:47
use dateadd for that

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-31 : 10:17:30
some thing like DATEADD(dd,Number-1,0) to get corresponding date value

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -