@microsoft/fast-foundation > DateFormatter > getWeekday
DateFormatter.getWeekday() method
Signature:getWeekday(weekday?: number, format?: WeekdayFormat, locale?: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
weekday | number | The number of the weekday, defaults to Sunday |
format | WeekdayFormat | The formatting for the weekday label |
locale | string | The locale data used for formatting |
string
- A formatted weekday label