add-weeks
function
The add-weeks
action adds weeks to a given date. It belongs to the datetime category within the data area.
Action Syntax
add-weeks 123 to $variable
A numeric value followed by a value followed by A variable name starting with $
add-weeks $variable to $variable
A variable name starting with $ followed by a value followed by A variable name starting with $
add-weeks 123 to YYYY-MM-DD
A numeric value followed by a value followed by A date in YYYY-MM-DD format
add-weeks $variable to YYYY-MM-DD
A variable name starting with $ followed by a value followed by A date in YYYY-MM-DD format
Return Value
This function returns a
DT_DATEONLY
value that can be stored in a variable:
$result = add-weeks
Valid sizes
tiny
small
medium
large
extra
Examples
// Basic Usage
$DT_DATEONLY = add-weeks 10 to $date
Action code: 2178373035
Version: 0.6.4
Last updated: 2025-06-13