Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function IncMonth(Date: TDateTime; Months: Integer) : TDateTime;
Adds or substracts a given number of months from a date value.
The Time part of day specified by the Date parameter is copied to the result.
var Date: TDateTime;
EncodeDate(Date, 2000, 1, 31) //January 31, 2000
IncMonth(Date, 1)
//February 28, 2001
//IncMonth won't return
//an invalid date, of course.
|
EncodeDate, IncAMonth, IncDay
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|