DevBolt
← Back to tools

Date Format Tester

Test date format patterns for strftime, date-fns, Moment.js, Go, and Java. Enter a date and pattern to see the formatted output instantly.

Common Formats Preview

FormatPatternOutput
ISO 8601%Y-%m-%dT%H:%M:%S%z2026-03-19T05:58:07+0000
US Date%m/%d/%Y03/19/2026
EU Date%d/%m/%Y19/03/2026
Full Date + Time%A, %B %-d, %Y %I:%M %pThursday, March 19, 2026 05:58 AM
Short Date + Time%Y-%m-%d %H:%M:%S2026-03-19 05:58:07
Time Only (12h)%I:%M:%S %p05:58:07 AM
Time Only (24h)%H:%M:%S05:58:07
RFC 2822%a, %d %b %Y %H:%M:%S %zThu, 19 Mar 2026 05:58:07 +0000

Click a row to use that pattern

Token Reference — strftime (Python, PHP, Ruby)

TokenDescriptionExample
%Y4-digit year2026
%y2-digit year26
%mMonth (01–12)03
%-mMonth (1–12)3
%BFull month nameMarch
%bAbbreviated monthMar
%dDay (01–31)18
%-dDay (1–31)18
%AFull weekdayWednesday
%aAbbreviated weekdayWed
%HHour 24h (00–23)14
%IHour 12h (01–12)02
%MMinute (00–59)05
%SSecond (00–59)09
%pAM/PMPM
%zUTC offset+0100
%ZTimezone nameEST
%jDay of year (001–366)077
%wWeekday (0=Sun)3
%sUnix timestamp1774070400
%%Literal %%

Quick Reference

strftime — Python (datetime.strftime), PHP (strftime), Ruby (Time#strftime), C. Unicode — date-fns (format), Moment.js, Day.js. Go — uses reference time Mon Jan 2 15:04:05 MST 2006. JavaSimpleDateFormat, Kotlin, Scala.