Library API
    Preparing search index...

    Function probeMDY

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

      Parameters

      • locale: string

        The locale string to probe

      Returns boolean

      True if the locale uses MDY format, false otherwise

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