Skip to main content
Version: 1.x

@microsoft/fast-foundation > DateFormatter > getMonth

DateFormatter.getMonth() method

Signature:
getMonth(month?: number, format?: MonthFormat, locale?: string): string;

Parameters

ParameterTypeDescription
monthnumberThe month to localize
formatMonthFormatThe formatting for the month
localestringThe locale data used for formatting
Returns:

string

  • A localized name of the month