Back to the Main Page
All of these examples assume that the library has been imported as noted in the Documentation.
The add() method of a date allows you to add a specified number of a specified date part to any date easily. Considering the following date ("curDate") and examples (which add "5" of each available date parts):
The add() method of a date can also subtract from a date if a negative value is added. Considering the following date ("curDate") and examples (which add "5" of each available date parts):