[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)


Increase a date with a certain amount of months


Source position: datih.inc line 130

procedure IncAMonth(

  var Year: Word;

  var Month: Word;

  var Day: Word;

  NumberOfMonths: Integer = 1



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



Increases the month in a TDateTime value with a given amount.

Documentation generated on: Mar 17 2017