Skip to main content
Version: 1.x

@microsoft/fast-foundation > DateFormatter > getWeekday

DateFormatter.getWeekday() method

Signature:
getWeekday(weekday?: number, format?: WeekdayFormat, locale?: string): string;

Parameters

ParameterTypeDescription
weekdaynumberThe number of the weekday, defaults to Sunday
formatWeekdayFormatThe formatting for the weekday label
localestringThe locale data used for formatting
Returns:

string

  • A formatted weekday label