novx
    Preparing search index...

    Interface DateTimeFormatOptions

    formatting options for dates

    interface DateTimeFormatOptions {
        calendar?: string;
        dateStyle?: "long" | "short" | "full" | "medium";
        day?: "numeric" | "2-digit";
        dayPeriod?: "long" | "short" | "narrow";
        era?: "long" | "short" | "narrow";
        formatMatcher?: "best fit" | "basic";
        fractionalSecondDigits?: 2 | 1 | 3;
        hour?: "numeric" | "2-digit";
        hour12?: boolean;
        hourCycle?: "h11" | "h12" | "h23" | "h24";
        locale?: string;
        localeMatcher?: "best fit" | "lookup";
        minute?: "numeric" | "2-digit";
        month?: "long" | "short" | "narrow" | "numeric" | "2-digit";
        numberingSystem?: string;
        second?: "numeric" | "2-digit";
        timeStyle?: "long" | "short" | "full" | "medium";
        timeZone?: string;
        timeZoneName?:
            | "long"
            | "short"
            | "shortOffset"
            | "longOffset"
            | "shortGeneric"
            | "longGeneric";
        weekday?: "long"
        | "short"
        | "narrow";
        year?: "numeric" | "2-digit";
    }

    Hierarchy

    • DateTimeFormatOptions
      • DateTimeFormatOptions
    Index

    Properties

    calendar?: string
    dateStyle?: "long" | "short" | "full" | "medium"
    day?: "numeric" | "2-digit"
    dayPeriod?: "long" | "short" | "narrow"
    era?: "long" | "short" | "narrow"
    formatMatcher?: "best fit" | "basic"
    fractionalSecondDigits?: 2 | 1 | 3
    hour?: "numeric" | "2-digit"
    hour12?: boolean
    hourCycle?: "h11" | "h12" | "h23" | "h24"
    locale?: string

    an optional locale

    localeMatcher?: "best fit" | "lookup"
    minute?: "numeric" | "2-digit"
    month?: "long" | "short" | "narrow" | "numeric" | "2-digit"
    numberingSystem?: string
    second?: "numeric" | "2-digit"
    timeStyle?: "long" | "short" | "full" | "medium"
    timeZone?: string
    timeZoneName?:
        | "long"
        | "short"
        | "shortOffset"
        | "longOffset"
        | "shortGeneric"
        | "longGeneric"
    weekday?: "long" | "short" | "narrow"
    year?: "numeric" | "2-digit"