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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Days

Author  Topic 

PatDeV
Posting Yak Master

197 Posts

Posted - 2006-02-06 : 09:50:59
Hi all,

new to this but need to count days between two dates!! What will be the procedure for that!!

thanks

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-02-06 : 09:53:52
Select DateDiff(day,date1,date2) as [Days] from yourTable

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -