diff --git a/web/src/lib/date.ts b/web/src/lib/date.ts index 0034d49..22048a1 100644 --- a/web/src/lib/date.ts +++ b/web/src/lib/date.ts @@ -101,7 +101,7 @@ export function formatDateRange(dates: string[]): string { if (firstDate.getMonth() === lastDate.getMonth()) { // same month - return `${firstDate.getDay()}.-${lastDate.getDay()}. ${formatDate( + return `${firstDate.getDay()}.—${lastDate.getDay()}. ${formatDate( firstDate, "MMMM" )}`; @@ -110,5 +110,5 @@ export function formatDateRange(dates: string[]): string { // continues into next month const formattedFirstDate = formatDate(firstDate, "d. MMMM"); const formattedLastDate = formatDate(lastDate, "d. MMMM"); - return `${formattedFirstDate} - ${formattedLastDate}`; + return `${formattedFirstDate}—${formattedLastDate}`; }