Appearance
IncYear
Declaration
function IncYear(const AValue: TDateTime; const ANumberOfYears: Integer): TDateTime;
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
Value := IncYear(Date,7); //returns a date incremented by 7 years.
end;Description
Returns the given date incremented by the number of years given.