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

formatDateTimePower Automate (WDL) function reference

Format a timestamp.

Syntax

wdl
formatDateTime(timestamp, [format], [locale])

Examples

wdl
formatDateTime(utcNow(), 'dd MMM yyyy')
"13 Jun 2026"
wdl
formatDateTime(item()?['DueDate'], 'yyyy-MM-dd')
"2026-07-08"

Locale affects the rendered day/month names.

wdl
formatDateTime(utcNow(), 'dddd, dd MMMM yyyy', 'en-GB')
"Wednesday, 08 July 2026"

Common mistakes & gotchas

Related Workflow Definition Language functions

From Date & time

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet