RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IncYear Function

Returns a date shifted by a specified number of years.

Pascal
function IncYear(const AValue: TDateTime; const ANumberOfYears: Integer = 1): TDateTime;
C++
TDateTime IncYear(const TDateTime AValue, const int ANumberOfYears = 1);

DateUtils

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. 

 

DecodeDate 

EncodeDate 

ReplaceDate 

IncMonth 

IncHour 

IncMilliSecond 

IncMinute 

IncSecond 

IncDay 

IncWeek

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!