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);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!