DATEADD Add specified number of days to a date variable |
Top Previous Next |
This script command is used to add a specified number of days to a date variable.
Consider the example below where 14 days is added to a variable containing the current date.
SET today = %date DATEADD today 14
The number of days to add may also be expressed in a variable as shown below.
SET today = %date SETNUM SETdays = 14 DATEADD today days
The %date internal variable may not be used in this command directly.
Related Command(s): DATESUB See also: Using the %date, %datetime, and %time Variables
|