Power Automate (WDL) function
addDays — Power Automate (WDL) function reference
Add days.
Syntax
wdl
addDays(timestamp, days, ['format'])
Examples
wdl
addDays(utcNow(), 7)
→ One week out
wdl
addDays(triggerBody()?['StartDate'], -1)
→ The day before the start date
wdl
formatDateTime(addDays(utcNow(), 30), 'yyyy-MM-dd')
→ A clean 30-day-out expiry date string
Common mistakes & gotchas
- days accepts negative numbers and decimals (e.g. 0.5 adds 12 hours) — it is not restricted to whole-day integers.
- The result keeps the input timestamp's time-of-day and offset; a timestamp with no explicit offset is treated as UTC, which matters when comparing against a locally entered date.
Related Workflow Definition Language functions
From Date & time