FULLSCREEN | CONTENTS | Project Home Page |
---|
.FUNCTION....: Month Date Arithmetic Functions .ALIAS.......: MODAARFUFunction name is "m" for "month arithmetic"..DISCUSSION..:
.EXAMPLES: 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-1992Note that a too-simple algorithm for month arithmetic can produce non-existent dates. Subtracting a month from March 30, 1991 (as in the second example) could produce a result of February 30, 1991, a date which cannot exist..DISCUSSION..: