Skip to main content

Function: labelWeekday()

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

Defined in: src/labels/labelWeekday.ts:14

Generates the ARIA label for a weekday column header.

Parameters

ParameterTypeDescription
dateDateThe date representing the weekday.
options?DateLibOptionsOptional configuration for the date formatting library.
dateLib?DateLibAn optional instance of the date formatting library.

Returns

string

The ARIA label for the weekday column header.

Default Value

"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"

See

https://daypicker.dev/docs/translation#aria-labels