Skip to content

Commit

Permalink
Merge pull request #842 from takenet/lucasMurtaVI-patch-9
Browse files Browse the repository at this point in the history
Update calendar.ts
  • Loading branch information
lucasMurtaVI authored Jun 4, 2024
2 parents ef1092e + ddc1b96 commit 70ce1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const dateToDayList = (value: string): DaysList => {

export const dateToInputDate = (value: string): string => {
const splitDate = value.split('/');
return `${parseFloat(splitDate[2])}-${parseFloat(splitDate[1]).toString().padStart(2, "0")}-${parseFloat(splitDate[0]).toString().padStart(2, "0")}`;
return `${parseFloat(splitDate[2])}-${parseFloat(splitDate[1]).toString().padStart(2, '0')}-${parseFloat(splitDate[0]).toString().padStart(2, '0')}`;
};

export const dateToString = (value: Date): string => {
Expand Down

0 comments on commit 70ce1ee

Please sign in to comment.