Library API
    Preparing search index...

    Variable probeMDYConst

    probeMDY: (locale?: LocaleInput) => boolean = ...

    Probes the runtime to see if the locale defaults to Month-Day-Year (MDY) order. Useful for resolving ambiguous dates like '12/11/2024'.

    Type Declaration

      • (locale?: LocaleInput): boolean
      • Parameters

        • Optionallocale: LocaleInput

          The locale string to probe

        Returns boolean

        True if the locale uses MDY format, false otherwise

    probeMDY('en-US') // true
    probeMDY('en-GB') // false