System.SysUtils.IncAMonth

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE void __fastcall IncAMonth(System::Word &Year, System::Word &Month, System::Word &Day, int NumberOfMonths = 0x1);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Increments date information by one month.

IncAMonth modifies Year, Month, and Day parameters so the date they describe is 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.

See Also