|
One thing I forgot about the "actual 6 month" technique in the message I posted 2 minutes ago... it can result in invalid dates like '20040230' because August 30... this is another reason not to use months, but use days instead! On Thu, 28 Oct 2004, Scott Klement wrote: > > CHGVAR VAR(&MM) VALUE(&MONTH) > CHGVAR VAR(&MM) VALUE(&MM - 6) > > IF (&MM *LT 1) DO > CHGVAR VAR(&YYYY) VALUE(&YEAR) > CHGVAR VAR(&YYYY) VALUE(&YYYY - 1) > CHGVAR VAR(&YEAR) VALUE(&YYYY) > CHGVAR VAR(&MM) VALUE(&MM + 12) > ENDDO > > CHGVAR VAR(&MONTH) VALUE(&MM) > CHGVAR VAR(&DATE) VALUE(&YEAR *CAT &MONTH *CAT &DAY) >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.