JavaScript 2025 · Strings

Format a date

Format a date for a locale.

new Intl.DateTimeFormat("en-GB", { dateStyle: "medium" }).format(new Date());

Official JavaScript 2025 documentation

More strings commands

All strings commands · JavaScript 2025 cheatsheet

Was this page helpful?