replace hyphen with dash
This commit is contained in:
@ -101,7 +101,7 @@ export function formatDateRange(dates: string[]): string {
|
|||||||
|
|
||||||
if (firstDate.getMonth() === lastDate.getMonth()) {
|
if (firstDate.getMonth() === lastDate.getMonth()) {
|
||||||
// same month
|
// same month
|
||||||
return `${firstDate.getDay()}.-${lastDate.getDay()}. ${formatDate(
|
return `${firstDate.getDay()}.—${lastDate.getDay()}. ${formatDate(
|
||||||
firstDate,
|
firstDate,
|
||||||
"MMMM"
|
"MMMM"
|
||||||
)}`;
|
)}`;
|
||||||
@ -110,5 +110,5 @@ export function formatDateRange(dates: string[]): string {
|
|||||||
// continues into next month
|
// continues into next month
|
||||||
const formattedFirstDate = formatDate(firstDate, "d. MMMM");
|
const formattedFirstDate = formatDate(firstDate, "d. MMMM");
|
||||||
const formattedLastDate = formatDate(lastDate, "d. MMMM");
|
const formattedLastDate = formatDate(lastDate, "d. MMMM");
|
||||||
return `${formattedFirstDate} - ${formattedLastDate}`;
|
return `${formattedFirstDate}—${formattedLastDate}`;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user