Returns a date shifted by a specified number of months.
function IncMonth(const DateTime: TDateTime; NumberOfMonths: Integer = 1): TDateTime;
TDateTime IncMonth(const TDateTime DateTime, int NumberOfMonths = 1);
SysUtils
IncMonth returns the value of the Date parameter, incremented by NumberOfMonths months. NumberOfMonths can be negative, to return a date N months previous.
If the input day of month is greater than the last day of the resulting month, the day is set to the last day of the resulting month. The time of day specified by the Date parameter is copied to the result.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|