Datetime.IncMonth

Parent Previous Next

Datetime.IncMonth.

Increments the current instance with the specified number of months. Passing a negative value causes a decrement. Returns Self for a possible continuation of operations.


Syntax.


 IncMonth(Integer months) : <Self>

 


Example:


 Datetime dtDate.SetDate(2050, 1, 15);

 dtDate.IncMonth(4);

 Integer x := dtDate.Month(); //Now x == 5;