Sign in Join
FPDoc Onlineexperiment

IncAMonth procedure

In unit sysutils

Increase a date with a certain amount of months.

Declaration

pascal
procedure IncAMonth(var Year: Word; var Month: Word; var Day: Word; 
 NumberOfMonths: Integer=1)

Description

IncAMonth increases the date as specified by Year, Month, Day with NumberOfMonths. It takes care of the number of days in a month when calculating the result.

This function does the same as IncMonth, but operates on an already decoded date.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.