6 lines
259 B
JavaScript
6 lines
259 B
JavaScript
const WEEKDAY_FORMATTER = new Intl.DateTimeFormat('fr-FR', { weekday: 'long' })
|
|
|
|
// Returns the printed day heading, for example "LUNDI 21".
|
|
export function formatDayLabel(date) {
|
|
return `${WEEKDAY_FORMATTER.format(date).toUpperCase()} ${date.getDate()}`
|
|
}
|