Skip to content

Commit c23c8f4

Browse files
committed
Fix formatting of date range separator in formatPeriod function to use en-dash instead of hyphen
1 parent a519fbb commit c23c8f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/formatDate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export const formatDate = (dateString: string | null): string => {
1313
};
1414

1515
export const formatPeriod = (start = "2020-01-01", end: string | null): string => {
16-
return `${formatDate(start)} - ${formatDate(end)}`;
16+
return `${formatDate(start)} \u2013 ${formatDate(end)}`;
1717
};

0 commit comments

Comments
 (0)