• Format a date, separated into its individual parts

    Parameters

    • value: number | Date

      The date value to format. Can be a Date object or a number representing milliseconds since the epoch

    • dateTimeOptions: DateTimeOptions

      Options to apply to the formatter, including locale

    Returns DateTimeFormatPart[]

    An ordered array of objects representing the parts of the formatted date, each with a type and value