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
 Query to find out how many days in between

Author  Topic 

JJ297
Aged Yak Warrior

940 Posts

Posted - 2011-01-21 : 13:38:26
How would I write a query to find out how many days are in between

Getdate and 4/3/2010?

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-01-21 : 13:46:05
SELECT DateDiff(day, '4/3/2010', GETDATE())
Go to Top of Page

JJ297
Aged Yak Warrior

940 Posts

Posted - 2011-01-21 : 14:19:09
Thanks!
Go to Top of Page
   

- Advertisement -