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 2005 Forums
 Transact-SQL (2005)
 How to Get Number of days from 2 dates

Author  Topic 

khufiamalik
Posting Yak Master

120 Posts

Posted - 2008-09-01 : 07:32:43
Is there any way by which i can get Number of days from 2 dates.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-09-01 : 07:35:35

Using DATEDIFF function

Madhivanan

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

sunil
Constraint Violating Yak Guru

282 Posts

Posted - 2008-09-01 : 07:35:58
Look DATEDIFF in Books Online
Go to Top of Page

khufiamalik
Posting Yak Master

120 Posts

Posted - 2008-09-01 : 07:45:10
Thanks,

I got my solution by using DATEDIFF
Go to Top of Page
   

- Advertisement -