n8n toFormat()
Formats a Luxon DateTime as text using tokens like yyyy, MM, dd, HH and mm.
Syntax
dateTime.toFormat(pattern)
Example
$now.toFormat('yyyy-MM-dd')
Result: 2026-11-08
Equivalent in Make.com
formatDate() β formatDate(date; format; [timezone])