converts a DateOnly to JavaScript Date if it's not already a Date This is so that DateOnly can be formatted using Intl.DateTimeFormat
the Date or DateOnly to convert
Optional
the time zone to use when converting a DateOnly to a Date Default is the local time zone
converts a DateOnly to JavaScript Date if it's not already a Date This is so that DateOnly can be formatted using Intl.DateTimeFormat