Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Date & Time

strftime Formatter

Apply a strftime-style format string to a date: %Y (year), %m (month), %d (day), %H:%M:%S (clock), %j (day of year), %U/%W (week number), %a/%A and %b/%B (names), %p (AM/PM), %s (Unix epoch), %z/%Z (timezone) and composite shorthand %F, %D, %R, %T, %x, %X. Defaults to the current time, or give a Unix timestamp; format in your local time or UTC. Unknown tokens are kept as-is and flagged. 100% on-device.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

A token language for formatting one instant

You give the formatter a pattern such as %Y-%m-%d %H:%M:%S and it substitutes each directive from the chosen moment. Year, month, day, clock fields, weekday and month names, the AM/PM marker, day of year (%j), Sunday- and Monday-based week numbers (%U and %W), Unix time (%s) and the zone offset (%z, %Z) are all covered, plus the composite shorthands %F, %D, %R, %T, %x and %X.

Choosing the instant and the zone

Leave the timestamp field empty to format the current moment. Enter a Unix timestamp in whole seconds — not milliseconds — to format a specific instant, and tick Use UTC for output that does not depend on your machine: epoch 0 then reads 1970-01-01 00:00:00 and %s returns exactly the number you supplied.

Unknown tokens are kept and flagged

Anything the formatter does not recognise, such as %q, is emitted exactly as written and listed in the notes, so a typo is visible rather than silently swallowed. A literal percent sign is written as %%, and a lone % before an unknown letter is one of the flagged cases. The date is never adjusted to make a token work.

Formatting is pure local arithmetic

The conversion is arithmetic on a JavaScript Date object inside this tab. Your timestamp or pattern is never sent anywhere, no request is made and no account is needed, and the result is identical whether the browser is online or offline.

Questions

Which strftime tokens are supported?

Year (%Y %y), month (%m, %b, %B), day (%d, %e, %j), weekday (%a, %A, %w, %u), hour (%H, %I, %p, %P), minute/second (%M %S), week numbers (%U Sunday-based, %W Monday-based), Unix time (%s) and zone (%z, %Z). Composite shorthands %c, %D, %F, %R, %T, %x, %X are expanded, and %% is a literal percent.

What happens to an unknown token?

It is left exactly as written (e.g. "%q" stays "%q") and listed in the notes so you can spot typos.

Can I format a specific past or future date?

Yes — put the Unix timestamp (seconds, not milliseconds) in the timestamp field. The epoch 0 formats 1970-01-01 00:00:00 UTC. Use UTC for fully deterministic output.

See category