Library API
    Preparing search index...

    Variable getDateTimeFormatConst

    getDateTimeFormat: () => Readonly<Intl.ResolvedDateTimeFormatOptions> = ...

    Retrieves the system's current TimeZone, Calendar, and Locale information by resolving the default Intl.DateTimeFormat options.

    Type Declaration

      • (): Readonly<Intl.ResolvedDateTimeFormatOptions>
      • Returns Readonly<Intl.ResolvedDateTimeFormatOptions>

        The resolved DateTimeFormat options

    const { timeZone, locale } = getDateTimeFormat();