{ "id": "api/common/getLocaleFirstDayOfWeek", "title": "getLocaleFirstDayOfWeek", "contents": "\n\n
\n
\n
\n \n API > @angular/common\n
\n \n
\n \n
\n

getLocaleFirstDayOfWeeklink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

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

\n\n \n
\n \n \n \n\n
\n \n\n getLocaleFirstDayOfWeek(locale: string): WeekDay\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n locale\n string\n

A locale code for the locale format rules to use.

\n\n
\n\n \n
Returns
\n

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

\n\n \n\n\n \n\n \n
\n\n\n \n
\n

See alsolink

\n \n
\n\n\n \n\n\n\n \n\n\n
\n
\n\n\n" }