JS date formatter
Pick a locale and format, see how today's date renders withIntl.DateTimeFormat, and copy the matching code for Intl, date-fns, or Temporal.
Everything runs in your browser — no data is sent anywhere.
~~~
~~~
Live output
Formatted with the current date in your browser
~~~
Code snippet
~~~
About this tool
Intl.DateTimeFormat is the built-in way to format dates for a locale — no library required. PickdateStyle andtimeStyle for quick presets, or switch to custom parts for fine control.
The date-fns tab maps your choices to aformat() pattern string. The Temporal tab shows .toLocaleString() with the same options — handy if you're on the Temporal polyfill or a runtime that ships it.
~~~
Read more
- How to format a date in JavaScript
- JavaScript dates — the
Dateobject and its quirks - JavaScript internationalization — Intl overview
- Get year, month, and day from a JS date