# Date format token reference — no upload

> A reference of date format tokens (strftime, Moment/day.js, Intl) with examples. Runs in your browser, nothing fetched.

Look up date and time format tokens across common systems — strftime, Moment/day.js patterns, and their meanings — with examples. It ships built in, so nothing is fetched.

Every date library uses slightly different format tokens, and the case-sensitive ones (month vs minute) cause subtle bugs. A reference with examples makes building or translating a format string quick and correct.

To convert actual timestamps rather than formats, use the Unix timestamp converter.

## How to

1. **Find a token.** Search for the piece of a date you want to format.
2. **Read the token.** See the token and an example of its output.
3. **Build the pattern.** Assemble your format string.

## FAQ

### What token gives a 4-digit year?

YYYY in Moment/day.js patterns and %Y in strftime. The reference lists the equivalents so you can translate a format between systems.

### Why do 'MM' and 'mm' differ?

Case matters: MM is usually month, mm is minutes. Mixing them is a classic bug the reference helps you avoid.

### Is anything fetched?

No. Everything is built in, so it works without a connection.


## Related tools

- [Timestamp](https://www.safepaper.app/dev/unix-timestamp-converter)
- [Cron explainer](https://www.safepaper.app/dev/cron)
- [Number base](https://www.safepaper.app/dev/number-base)
- [SemVer rules](https://www.safepaper.app/dev/semver-rules)

---

Canonical HTML: https://www.safepaper.app/dev/date-format-tokens
Markdown: https://www.safepaper.app/dev/date-format-tokens.md

There is no upload endpoint — your files are processed in this browser tab. Open your network tab and check.
