Skip to content

Date Format

The Date Format node reformats a date field from its stored format into a display format. Use it to convert database timestamps into human-readable dates.

Configuration

PropertyTypeDefaultDescription
fieldstring--Required. The field containing the date string.
formatstringY-m-dPHP date format string.
outputFieldstring{field}_formattedThe field name where the formatted date is stored. Defaults to the input field name with _formatted appended.

Input

Accepts a single object or an array of rows.

Output

Returns the same rows with an additional field containing the formatted date string. If the date cannot be parsed, the output field is an empty string.

PHP Date Format Tokens

TokenDescriptionExample
Y4-digit year2025
y2-digit year25
mMonth (zero-padded)03
nMonth (no padding)3
FFull month nameMarch
MShort month nameMar
dDay (zero-padded)05
jDay (no padding)5
DShort day nameWed
lFull day nameWednesday
HHour (24h, zero-padded)14
hHour (12h, zero-padded)02
iMinutes (zero-padded)30
sSeconds (zero-padded)00
AAM/PMPM
aam/pmpm

Example Formats

FormatResult
Y-m-d2025-03-15
F j, YMarch 15, 2025
m/d/Y03/15/2025
d.m.Y15.03.2025
M j, Y g:i AMar 15, 2025 2:30 PM
D, M jSat, Mar 15
H:i14:30

Example Use Cases

Format a creation date

field: "created_at"
format: "F j, Y"
outputField: "created_display"

Input: "2025-03-15 14:30:00" produces "March 15, 2025"

Format for a European locale

field: "order_date"
format: "d.m.Y H:i"
outputField: "order_date_formatted"

Input: "2025-03-15 14:30:00" produces "15.03.2025 14:30"

Time-only display

field: "event_time"
format: "g:i A"
outputField: "time_display"

Input: "2025-03-15 14:30:00" produces "2:30 PM"

TIP

For quick date formatting in templates, use the date_format() expression function instead: { {date_format(row.created_at, 'F j, Y')}}. The Date Format node is more efficient when formatting the same field across many rows.