Link to home
Start Free TrialLog in
Avatar of KavyaVS
KavyaVS

asked on

DateDiff is not working

I am trying to get days difference between two dates. The data type is SmallDatetime.
Select *
from dbo.Tbl1
where (DateDiff(day,Date1,Date2) > = 10)

It is not giving the correct results.How to make it work.

Thanks
SOLUTION
Avatar of chaau
chaau
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KavyaVS
KavyaVS

ASKER

Thanks