Skip to main content

Function: formatMonthDropdown()

formatMonthDropdown(month, dateLib): string

Defined in: src/formatters/formatMonthDropdown.ts:14

Formats the month for the dropdown option label.

Parameters

ParameterTypeDefault valueDescription
monthDateundefinedThe date representing the month.
dateLibDateLibdefaultDateLibThe date library to use for formatting. Defaults to defaultDateLib.

Returns

string

The formatted month name as a string.

Default Value

The localized full month name.

See

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