FULLSCREEN CONTENTS Project Home Page
.MATH_FUNCS..: Date Arithmetic Functions
.ALIAS.......: FUNARIFU
.DISCUSSION..:
Internally, numbers in Fdate are stored in Turbo Pascal's LONGINT datatype, which means that Fdate can accept numbers up to 9 digits long.

FUNCTION FDATE /Ffunc /Nnumdays /Adate /Iformat /Oformat
-------------------------------------------------------------
add Adds /Ndays to
/Adate, produces date in /Oformat format sub Subtracts /Ndays from
/Adate, produces date in /Oformat format

EXAMPLES
FDATE /Fadd /N90 /A01-01-1992 /Imm-dd-ccyy /Od1
FDATE /Fsub /N90 /A01-01-1992 /Imm-dd-ccyy /Od1
FDATE /Fadd /N90 /Atoday /Od1

dif Returns number of days between /Adate and /Bdate
Order of the two dates is not significant.

NOTE THAT:
For DIF, both dates must be in the SAME format, the input format
specified in /Iformat. If the two dates are not in the same
format, you must first reformat one of the dates using the /Ff
function, then use DIF to get their difference.

EXAMPLES
FDATE /Fdif /A01-01-1992 /B11-11-1992 /Imm-dd-ccyy
FDATE /Fdif /A11-11-1992 /B01-01-1992 /Imm-dd-ccyy
FDATE /Fdif /Atoday /B01-01-1992 /Imm-dd-ccyy