Skip to main content

Function: formatDay()

formatDay(date, options?, dateLib?): string

Defined in: src/formatters/formatDay.ts:15

Formats the day date shown in the day cell.

Parameters

ParameterTypeDescription
dateDateThe date to format.
options?DateLibOptionsConfiguration options for the date library.
dateLib?DateLibThe date library to use for formatting. If not provided, a new instance is created.

Returns

string

The formatted day as a string.

Default Value

d (e.g., "1").

See

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