W3cubDocs

/Angular 12

getLocaleFirstDayOfWeek

function

Retrieves the first day of the week for the given locale.

getLocaleFirstDayOfWeek(locale: string): WeekDay

Parameters
locale string

A locale code for the locale format rules to use.

Returns

WeekDay: A day index number, using the 0-based week-day index for en-US (Sunday = 0, Monday = 1, ...). For example, for fr-FR, returns 1 to indicate that the first day is Monday.

See also

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/common/getLocaleFirstDayOfWeek