DateTimeFormat

Explore the multiple options of the Intl.DateTimeFormat API to see how the date is formatted.

Whether to use 12-hour time (as opposed to 24-hour time).

Fast Formatting

The date formatting style to use when calling format().

The time formatting style to use when calling format().

The formatting style used for day periods like "in the morning", "am", "noon", "n" etc.

The representation of the weekday.

The representation of the era.

The representation of the year.

The representation of the month.

The representation of the day.

The representation of the hour.

The representation of the minute.

The representation of the second.

The number of digits used to represent fractions of a second (any additional digits are truncated).

12/13/2022

Code

new Intl.DateTimeFormat("")
.format( new Date() )