The part between the single-quotes should be formatted as yyyymmdd. This is considered the ISO-Unseparated data format. For example, today, March 12, 2008 would be '20080312'.
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
You can simply subtract from a date value if you want to subtract days. If you want to subtract some other units (Ex: Months) then you would use DateAdd.
Ex:
Where DateColumn <= DateAdd(Month, -1, SomeDateValue)
Make sense?
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
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.