Cheat Sheets/Power Automate/addToTime
Power Automate (WDL) function

addToTimePower Automate (WDL) function reference

Add an arbitrary span.

Syntax

wdl
addToTime(timestamp, interval, timeUnit, ['format'])

Examples

wdl
addToTime(utcNow(), 3, 'Month')
A timestamp
wdl
addToTime(triggerBody()?['SubscriptionStart'], 1, 'Year')
The subscription start date, one year later
wdl
addToTime(utcNow(), 6, 'Hour', 'yyyy-MM-ddTHH:mm:ssZ')
A custom-formatted timestamp 6 hours from now

Common mistakes & gotchas

Related Workflow Definition Language functions

From Date & time

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet