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