✓tick.pro

Date Formatting Cheat Sheet — strftime, ISO, Moment.js | tick.pro

Developer cheat sheet for date formatting. strftime codes, ISO 8601 patterns, JavaScript Date methods, and common format strings.

strftime Format Codes

%Y
4-digit year (2024)
%m
Month 01-12
%d
Day 01-31
%H
Hour 00-23
%M
Minute 00-59
%S
Second 00-59
%B
Month name (January)
%b
Abbrev month (Jan)
%A
Day name (Monday)
%a
Abbrev day (Mon)
%Z
Timezone (UTC)
%z
+0000 offset
%s
Unix timestamp
%F
= %Y-%m-%d
%T
= %H:%M:%S
%D
= %m/%d/%y
%r
12-hour time
%p
AM/PM

Frequently Asked Questions

What does %Y-%m-%d mean?

This is strftime format: %Y is 4-digit year, %m is zero-padded month, %d is zero-padded day. So %Y-%m-%d produces 2024-01-15.

curl https://tick.pro/formats/cheat-sheet