M
mgc7999
Ran into an issue when using the dateadd function to
calculate intervals backwards. No matter which interval
(quarter, month, year), when starting from a short end of
month date (ie April 30, Feburary 28, etc), the intervals
fail to compensate for long end of months (ie. Janurary
31). For example dateadd("q",-1,#02/29/04) gives you the
result of 11/29/03 instead of 11/30/03. Is this a known
issue, and what kind of work around do you use. I need
to be able to accurately go back a quarter, without
having an extra day or two added to the months.
calculate intervals backwards. No matter which interval
(quarter, month, year), when starting from a short end of
month date (ie April 30, Feburary 28, etc), the intervals
fail to compensate for long end of months (ie. Janurary
31). For example dateadd("q",-1,#02/29/04) gives you the
result of 11/29/03 instead of 11/30/03. Is this a known
issue, and what kind of work around do you use. I need
to be able to accurately go back a quarter, without
having an extra day or two added to the months.