diff --git a/src/components/input/DateFilter.tsx b/src/components/input/DateFilter.tsx index 6e26c46bd..e4f4282a7 100644 --- a/src/components/input/DateFilter.tsx +++ b/src/components/input/DateFilter.tsx @@ -177,9 +177,9 @@ const CustomRange = ({ startDate, endDate, unit, onClick }) => { <>{intl.formatDate(startDate, { year: 'numeric', month: 'long' })} ) : ( <> - {intl.formatDate(startDate, { dateStyle: 'medium' })} - {!isSameDay(startDate, endDate) && - ` — ${intl.formatDate(endDate, { dateStyle: 'medium' })}`} + {isSameDay(startDate, endDate) + ? intl.formatDate(startDate, { dateStyle: 'medium' }) + : intl.formatDateTimeRange(startDate, endDate)} )}