Intl.DateTimeFormat.format - Web documentation
method Intl.DateTimeFormat.format
DateTimeFormat.format(date?: Formattable | number): string

Format a date into a string according to the locale and formatting options of this Intl.DateTimeFormat object.

Parameters

optional
date: Formattable | number

The date to format.

Return Type

string