Skip to content

Commit 0ca7d75

Browse files
committed
#2136 fixed date format
1 parent 05e7473 commit 0ca7d75

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/frontend/src/utils/design-review.utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export const getDateRange = (selectedDate: Date) => {
8484
const startDate = getStartOfWeek(selectedDate);
8585
const endDate = new Date(startDate);
8686
endDate.setDate(startDate.getDate() + 6);
87-
return `${startDate.toLocaleDateString()} - ${endDate.toLocaleDateString()}`;
87+
return `${(startDate.getMonth() + 1).toString()}/${startDate.getDate().toString()} - ${(
88+
endDate.getMonth() + 1
89+
).toString()}/${endDate.getDate().toString()}`;
8890
};
8991

9092
export const getHourFromDate = (currentDate: Date) => {

0 commit comments

Comments
 (0)