Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function IncDay(ADate: TDateTime; Days: Integer = 1) : TDateTime;
Adds or substracts a given number of days from a date value.
If the Days parameter is negative the date returned is < ADate.
The Time part of day specified by the Date parameter is copied to the result.
var Date: TDateTime;
EncodeDate(Date, 2003, 1, 29) //January 29, 2003
IncDay(Date, -1)
//January 28, 2003
|
EncodeDate, IncAMonth, IncMonth
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|