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