Interface DateTimeFormatOptions
interface DateTimeFormatOptions {
calendar?: string;
dateStyle?: "short" | "long" | "full" | "medium";
day?: "numeric" | "2-digit";
dayPeriod?: "short" | "long" | "narrow";
era?: "short" | "long" | "narrow";
formatMatcher?: "best fit" | "basic";
fractionalSecondDigits?: 1 | 2 | 3;
hour?: "numeric" | "2-digit";
hour12?: boolean;
hourCycle?: "h11" | "h12" | "h23" | "h24";
localeMatcher?: "lookup" | "best fit";
minute?: "numeric" | "2-digit";
month?: "short" | "long" | "narrow" | "numeric" | "2-digit";
numberingSystem?: string;
second?: "numeric" | "2-digit";
timeStyle?: "short" | "long" | "full" | "medium";
timeZone?: string;
timeZoneName?:
| "short"
| "long"
| "shortOffset"
| "longOffset"
| "shortGeneric"
| "longGeneric";
weekday?: "short"
| "long"
| "narrow";
year?: "numeric" | "2-digit";
}
calendar?: string;
dateStyle?: "short" | "long" | "full" | "medium";
day?: "numeric" | "2-digit";
dayPeriod?: "short" | "long" | "narrow";
era?: "short" | "long" | "narrow";
formatMatcher?: "best fit" | "basic";
fractionalSecondDigits?: 1 | 2 | 3;
hour?: "numeric" | "2-digit";
hour12?: boolean;
hourCycle?: "h11" | "h12" | "h23" | "h24";
localeMatcher?: "lookup" | "best fit";
minute?: "numeric" | "2-digit";
month?: "short" | "long" | "narrow" | "numeric" | "2-digit";
numberingSystem?: string;
second?: "numeric" | "2-digit";
timeStyle?: "short" | "long" | "full" | "medium";
timeZone?: string;
timeZoneName?:
| "short"
| "long"
| "shortOffset"
| "longOffset"
| "shortGeneric"
| "longGeneric";
weekday?: "short"
| "long"
| "narrow";
year?: "numeric" | "2-digit";
}
 Properties
Optionalcalendar
calendar?: string
OptionaldateStyle 
dateStyle?: "short" | "long" | "full" | "medium"
Optionalday
day?: "numeric" | "2-digit"
OptionaldayPeriod 
dayPeriod?: "short" | "long" | "narrow"
Optionalera
era?: "short" | "long" | "narrow"
OptionalformatMatcher 
formatMatcher?: "best fit" | "basic"
OptionalfractionalSecondDigits  
fractionalSecondDigits?: 1 | 2 | 3
Optionalhour
hour?: "numeric" | "2-digit"
Optionalhour12
hour12?: boolean
OptionalhourCycle 
hourCycle?: "h11" | "h12" | "h23" | "h24"
OptionallocaleMatcher 
localeMatcher?: "lookup" | "best fit"
Optionalminute
minute?: "numeric" | "2-digit"
Optionalmonth
month?: "short" | "long" | "narrow" | "numeric" | "2-digit"
OptionalnumberingSystem 
numberingSystem?: string
Optionalsecond
second?: "numeric" | "2-digit"
OptionaltimeStyle 
timeStyle?: "short" | "long" | "full" | "medium"
OptionaltimeZone 
timeZone?: string
OptionaltimeZoneName  
timeZoneName?:
| "short"
| "long"
| "shortOffset"
| "longOffset"
| "shortGeneric"
| "longGeneric"
| "short"
| "long"
| "shortOffset"
| "longOffset"
| "shortGeneric"
| "longGeneric"
Optionalweekday
weekday?: "short" | "long" | "narrow"
Optionalyear
year?: "numeric" | "2-digit"