LIVE FORMAT WORKBENCH

Make dates say exactly what you mean.

A small, fast reference for experimenting with date-fns format tokens against the current time.

YOUR REFERENCE TIME

09:46:12 PM

Tuesday, September 8, 2026

01 / TRY A FORMAT

Test any token string.

Use quotes for literal text. Need a token refresher? Read the official docs.

OUTPUT

2026-09-08 21:46:12

02 / STARTING POINTS

Useful formats, live and ready to copy.

FORMAT
Pp
PPpp
PP
PPP
PP 'at' p
MM/dd/y hh:mm a
iii M/d 'at' p
yyyy-MM-dd HH:mm:ss
MM/dd/yyyy
yyyy-MM-dd
yyyy/MM/dd
MMMM yyyy
MMM d
MMMM d
eeee MM/dd/yyyy
E MMM do
MMMM d 'at' p
MMMM d, yyyy
eee
eeee
h:mm a