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.
optional
date: Formattable | number
The date to format.
string