Skip to content

Commit

Permalink
fix: date format in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisParedes1 committed Dec 5, 2023
1 parent 0b6b41e commit 8e9d4ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/screens/profile/stadistics-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ const StatisticsScreen = () => {
};

const formattedStartDate =
startDate.getDate().toString().padStart(2, '0') +
'-' +
(startDate.getMonth() + 1).toString().padStart(2, '0') +
'-' +
startDate.getDate().toString().padStart(2, '0') +
'-' +
startDate.getFullYear();

const formattedEndDate =
endDate.getDate().toString().padStart(2, '0') +
'-' +
(endDate.getMonth() + 1).toString().padStart(2, '0') +
'-' +
endDate.getDate().toString().padStart(2, '0') +
'-' +
endDate.getFullYear();

return (
Expand Down

0 comments on commit 8e9d4ae

Please sign in to comment.