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";
}

Properties

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"