System.DateUtils.IncYear
Delphi
function IncYear(const AValue: TDateTime; const ANumberOfYears: Integer): TDateTime;
C++
extern DELPHI_PACKAGE System::TDateTime __fastcall IncYear(const System::TDateTime AValue, const int ANumberOfYears = 0x1);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
Description
Returns a date shifted by a specified number of years.
IncYear returns the value of the AValue parameter, incremented by ANumberOfYears years. ANumberOfYears can be negative, to return a date N years previous.
The time of day specified by the AValue parameter is copied to the result.
See Also