Datetime.IncDay

Parent Previous Next

Datetime.IncDay.

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


Syntax.


 IncDay(Integer days) : <Self>

 


Example:


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

 dtDate.IncDay(-7);

 Integer x := dtDate.Day(); //Now x == 8;