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

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

getLocaleDayNames

function
deprecatedsince v18.0

Retrieves days of the week for the given locale, using the Gregorian calendar.

Internationalization (i18n) Guide

Deprecation warning

Angular recommends relying on the Intl API for i18n. Use Intl.DateTimeFormat for date formating instead.

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

On this page

    arrow_upward_alt Back to the top

    API

    function getLocaleDayNames(
      locale: string,
      formStyle: FormStyle,
      width: TranslationWidth,
    ): readonly string[];
    @deprecated

    Angular recommends relying on the Intl API for i18n. Use Intl.DateTimeFormat for date formating instead.

    @paramlocalestring

    A locale code for the locale format rules to use.

    @paramformStyleFormStyle

    The required grammatical form.

    @paramwidthTranslationWidth

    The required character width.

    @returnsreadonly string[]

    An array of localized name strings. For example,[Sunday, Monday, ... Saturday] for en-US.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page