DP_DateExtension:
Date add() Examples

Back to the Main Page

All of these examples assume that the library has been imported as noted in the Documentation.

Adding to Dates

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):

Subtracting from Dates

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):