[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/common/getLocaleWeekEndRange [Back]  [Original]

getLocaleWeekEndRange Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/common

getLocaleWeekEndRange

function
deprecatedsince v18

Range of week days that are considered the week-end for the given locale.

Internationalization (i18n) Guide

Deprecation warning

Angular recommends relying on the Intl API for i18n. Intl's getWeekInfo has partial support (Chromium M99 & Safari 17). Libraries like Luxon rely on Intl but fallback on the ISO 8601 definition (Saturday+Sunday) if getWeekInfo is not supported .

orthos-back.svg [orthos-back.svg]

On this page

    arrow_upward_alt Back to the top

    API

    function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay];
    @deprecated

    Angular recommends relying on the Intl API for i18n. Intl's getWeekInfo has partial support (Chromium M99 & Safari 17). Libraries like Luxon rely on Intl but fallback on the ISO 8601 definition (Saturday+Sunday) if getWeekInfo is not supported .

    @paramlocalestring

    A locale code for the locale format rules to use.

    @returns[WeekDay, WeekDay]

    The range of day values, [startDay, endDay].

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page