RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IncDay Function

Returns a date shifted by a specified number of days.

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

DateUtils

IncDay returns the value of the AValue parameter, incremented by ANumberOfDays days. ANumberOfDays can be negative, to return a date N days previous. 

The time of day specified by the AValue parameter is copied to the result. 

 

DecodeDate 

EncodeDate 

ReplaceDate 

IncMonth 

IncHour 

IncMilliSecond 

IncMinute 

IncSecond 

IncWeek 

IncYear

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