• converts a DateOnly to JavaScript Date if it's not already a Date This is so that DateOnly can be formatted using Intl.DateTimeFormat

    Parameters

    • date: DateOnly | Date

      the Date or DateOnly to convert

    • OptionaltimeZone: string

      the time zone to use when converting a DateOnly to a Date Default is the local time zone

    Returns Date

MMNEPVFCICPMFPCPTTAAATR