Skip to main content
Version: 10.0.0-next.6

Function: formatWeekdayName()

formatWeekdayName(weekday, options?, dateLib?): string

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

Formats the name of a weekday to be displayed in the weekdays header.

Parameters

Returns

string

The formatted weekday name as a string.

Default Value

cccccc (e.g., "Mo" for Monday).

See

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