Note that datediff just subtacts the month value in each field, so that the difference between date(2008,8,31) and date(2008,9,1) (one day) would return a result of one month. You might be better off using:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.