IncDate Function

Action

Adds a certain number of days to a date.

Include file

Kernel.bdh

Syntax

IncDate( in nDate: number,
         in nDays: number ): number;

Return value

increased date

Parameter Description
nDate Input date with format YYYYMMDD
nDays Number of added days

Example

dcltrans
  transaction TIncDate
  var
    nNewDate: number;
  begin
    nNewDate := IncDate(19961015, 45);
    write("newdate = "); write(nNewDate); writeln;
  end TIncDate;

Output

newdate = 19961129