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
 SQL Server Development (2000)
 to get no of days from 2 dates through SQL

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-03-16 : 09:16:50
Ravuri writes "hi


I have 2 days as date of joining and currentdate i want no of days between these 2 dates



thanks
mallick ravuri"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-16 : 09:20:11
Select DateDiff(day,date1,date2) from yourTable

Madhivanan

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

- Advertisement -