method Intl.DateTimeFormat.formatToParts
DateTimeFormat.formatToParts(date?: Formattable | number): globalThis.Intl.DateTimeFormatPart[]
Allow locale-aware formatting of strings produced by
Intl.DateTimeFormat
formatters.
optional
date: Formattable | number
The date to format.
globalThis.Intl.DateTimeFormatPart[]