11 lines
263 B
TypeScript
11 lines
263 B
TypeScript
import { format } from 'date-fns';
|
|
|
|
import { DayLabel } from 'types/Labels';
|
|
|
|
/**
|
|
* The default ARIA label for the day button.
|
|
*/
|
|
export const labelDay: DayLabel = (day, activeModifiers, options): string => {
|
|
return format(day, 'do MMMM (EEEE)', options);
|
|
};
|