FULLSCREEN CONTENTS Project Home Page
.FUNCTION....: - Overview Of Date Arithmetic Functions
.ALIAS.......: overview_of_date_math
.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