| [Overview][Constants][Procedures and functions][Index] | 
Increase a TDateTime value with a number of weeks.
Source position: dateutil.inc line 300
function IncWeek(  | 
const AValue: TDateTime;  | 
const ANumberOfWeeks: Integer  | 
):TDateTime;  | 
const AValue: TDateTime  | 
):TDateTime;  | 
AValue  | 
  | 
TDateTime to which weeks should be added.  | 
ANumberOfWeeks  | 
  | 
Number of weeks to add  | 
TDateTime representing AValue plus ANumberOfWeeks weeks.
AValue  | 
  | 
TDateTime to which weeks should be added.  | 
IncWeek adds ANumberOfWeeks weeks to AValue and returns the resulting date/time.ANumberOfWeeks can be positive or negative.
  | 
Increase a TDateTime value with a number of years.  | 
|
  | 
Increases the month in a TDateTime value with a given amount.  | 
|
  | 
Increase a TDateTime value with a number of days.  | 
|
  | 
Increase a TDateTime value with a number of hours.  | 
|
  | 
Increase a TDateTime value with a number of minutes.  | 
|
  | 
Increase a TDateTime value with a number of seconds.  | 
|
  | 
Increase a TDateTime value with a number of milliseconds.  | 
Program Example73; { This program demonstrates the IncWeek function } Uses SysUtils,DateUtils; Begin Writeln('One Week from today is ',DateToStr(IncWeek(Today,1))); Writeln('One Week ago from today is ',DateToStr(IncWeek(Today,-1))); End.