Hex Core JS
    Preparing search index...

    Function formatWeekday

    • Formats a weekday as a string using the given locale and options. Wraps Intl.DateTimeFormat but selects the locale automatically based on the user's locale.

      Parameters

      • dayOfWeek: number

        The weekday number (0-6) to format.

      • options: DateLocaleOptions = {}

        The options to pass to Intl.DateTimeFormat.

      Returns string