Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxSchedulerDateTimeHelper.IncMonth(Word,Word,Word,Integer) Method

Increments the AMonth month by the number of months specified in the ANumberOfMonths parameter.

#Declaration

Delphi
class procedure IncMonth(var AYear: Word; var AMonth: Word; var ADay: Word; ANumberOfMonths: Integer = 1);

#Parameters

Name Type
AYear Word
AMonth Word
ADay Word
ANumberOfMonths Integer

#Remarks

The AYear parameter specifies the year the AMonth month belongs to;

The AMonth parameter specifies the month to be incremented;

The ADay parameter specifies the day in the AMonth month. If the value of the ADay parameter is greater than the last day in the resulting month then the ADay day will be set to the last day of the resulting month;

The ANumberOfMonths parameter specifies the number of months the AMonth month is incremented by. If the ANumberOfMonths parameter is not specified then the AMonth month will be incremented by one month.

See Also