Skip to main content

Function: formatMonthDropdown()

formatMonthDropdown(monthNumber, locale): string

Format the month number for the dropdown option label.

Parameters​

ParameterTypeDefault valueDescription
monthNumbernumberundefinedThe month number to format.
localeLocaleenUSThe locale to use for formatting.

Returns​

string

Default Value​

The localized month name

See​

https://daypicker.dev/docs/translation#custom-formatters

Defined in​

src/formatters/formatMonthDropdown.ts:11