HotDocs Author WorkflowCreate a template Add placeholders Group variables in dialogs Upload a template Create a script

DATE + NUMBER (of) DAYS (+ Operator)

The + DAYS operator calculates a new date value by adding the number of days to a DATE you specify.

The + DAYS operator works with a date value, which can be a date expression, a Date variable, or the result of a function that returns a date. The number of days to be added can be a number value, which can be a number expression, a Number variable, or the result of a function that returns a number.

Operator Description After you drag and drop the operator into the script tab: Expression returns:
DATE + NUMBER (of) DAYS ⟦Date⟧ +  ⟦Number⟧ DAYS Replace ⟦DATE⟧ placeholder with the date value you want to add to. Replace ⟦Number⟧ placeholder with the number value you want to add. A DATE value.

Example

The expression 'DATEOF ( 1, 11, 2020 ) + 3 DAYS' results in the date value 1/14/2023.