Skip to content

Date Format Previewer

Preview date and time formats with dayjs format tokens as you type.

Reference date and time

Result

Token reference

TokenMeaningExample
YYYYYear (4 digits)—
YYYear (last 2 digits)—
MMMonth (2 digits)—
MMonth—
MMMMMonth name—
MMMMonth name (short)—
DDDay of month (2 digits)—
DDay of month—
ddddDay of week—
dddDay of week (short)—
ddDay of week (shortest)—
dDay of week number (0 = Sunday to 6 = Saturday)—
HHHour (24-hour, 2 digits)—
HHour (24-hour)—
hhHour (12-hour, 2 digits)—
hHour (12-hour)—
mmMinute (2 digits)—
mMinute—
ssSecond (2 digits)—
sSecond—
SSSMillisecond (3 digits)—
AAM/PM—
aam/pm—
ZUTC offset (e.g. +09:00)—
ZZUTC offset (e.g. +0900)—

Wrap characters in square brackets to keep them from being read as tokens (e.g. [Today is] MMMM D, YYYY → Today is January 5, 2026).

More tools in Date & Time