Skip to main content
Version: 10.0.0-next.6

Function: formatCaption()

formatCaption(month, options?, dateLib?): string

Defined in: packages/react-day-picker/src/formatters/formatCaption.ts:15

Formats the caption of the month.

Parameters

Returns

string

The formatted caption as a string.

Default Value

Locale-specific month/year order (e.g., "November 2022").

See

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