Cheat Sheets/Power Automate/startOfDay / startOfMonth
Power Automate (WDL) function

startOfDay / startOfMonthPower Automate (WDL) function reference

Snap to a boundary.

Syntax

wdl
startOfDay(timestamp, ['format']) / startOfMonth(timestamp, ['format'])

Examples

wdl
startOfDay(utcNow())
Midnight today
wdl
startOfMonth(utcNow())
The first day of the current month at midnight UTC
wdl
equals(startOfDay(item()?['CreatedDate']), startOfDay(utcNow()))
true when the item was created "today", ignoring time-of-day

Common mistakes & gotchas

Related Workflow Definition Language functions

From Date & time

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet