Cheat Sheets/Power Automate/addHours / addMinutes
Power Automate (WDL) function

addHours / addMinutesPower Automate (WDL) function reference

Add smaller spans.

Syntax

wdl
addHours(timestamp, hours) / addMinutes(timestamp, minutes)

Examples

wdl
addHours(utcNow(), -2)
Two hours ago

A common "recheck later" delay target.

wdl
addMinutes(utcNow(), 15)
A timestamp 15 minutes from now
wdl
convertFromUtc(addHours(utcNow(), -8), 'Pacific Standard Time')
The local time 8 hours before now

Common mistakes & gotchas

Related Workflow Definition Language functions

From Date & time

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet