Date Calculation
Add or subtract time from a date and format the result.
DataDateCalculation
What it does
Add or subtract time from a date and format the result.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Date | string | Required | now | 'now' or a date string (ISO, or matching the input format). Example: now Supports variables |
| Operation | dropdownAdd · Subtract | Required | Add | |
| Amount | number | Required | 1 | Example: 7 Supports variables |
| Unit | dropdownseconds · minutes · hours · days · weeks | Required | days | |
| Input format | string | Optional | strptime format for the input (blank = ISO). Example: %Y-%m-%d | |
| Output format | string | Optional | %Y-%m-%d %H:%M:%S | strftime format for the result. |
| Store result in | variable | Required | Example: newDate |
More Data commands
Ready to automate your busywork?
Start your free 10-day trial today. No credit card, no commitment.