RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IncWeek Function

Returns a date shifted by a specified number of weeks.

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

DateUtils

IncWeek returns the value of the AValue parameter, incremented by ANumberOfWeeks weeks. ANumberOfWeeks can be negative, to return a date N weeks previous. 

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

 

DecodeDate 

EncodeDate 

ReplaceDate 

IncMonth 

IncHour 

IncMilliSecond 

IncMinute 

IncSecond 

IncDay 

IncYear

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