Printer Version | Table of Contents | Project Home Page |
Fdate /Fm /Nnumdays /Adate /Iformat /OformatThis function adds /N months to /Adate, and produces a date in /Oformat format. It can be used to do monthly subtraction by making the number in the /N parameter a negative number.
.DISCUSSION..:Fdate /Fm /N1 /A03-15-1992 /Imm-dd-ccyy /Omm-dd-ccyy produces: 04-15-1992 Fdate /Fm /N-1 /A03-30-1991 /Imm-dd-ccyy /Omm-dd-ccyy produces: 02-28-1991 Fdate /Fm /N-1 /A03-30-1992 /Imm-dd-ccyy /Omm-dd-ccyy produces: 02-29-1992
Fdate's MONTH DATE ARITHMETIC IS SMART!
Month arithmetic that is done just by subtracting a certain number of months can produce non-existent dates. For example, subtracting one month from March 30, 1991 (as in the second example) could produce a result of February 30, 1991, a date which cannot exist.