IncMonth
Returns a date shifted by a specified number of months.
Structure
IncMonth(const Date: TDateTime; NumberOfMonths: Integer): TDateTime;
Parameters
Return Value
Description
IncMonth returns the value of the Date parameter, incremented by NumberOfMonths months. NumberOfMonths can be negative, to return a date N months previous.
If the input day of month is greater than the last day of the resulting month, the day is set to the last day of the resulting month. The time of day specified by the Date parameter is copied to the result. |