This commit is contained in:
2024-10-29 19:32:47 +02:00
parent b299731fcc
commit c31770a9df
9 changed files with 29 additions and 49 deletions

View File

@@ -2,5 +2,5 @@ export function useFormattedDate(_date: string) {
const date = new Date(_date);
const month = date.getUTCMonth().toString().padStart(2, "0");
const monthDate = date.getUTCDate().toString().padStart(2, "0");
return `${date.getUTCFullYear()}/${month}/${monthDate}`;
return `${date.getUTCFullYear()}-${month}-${monthDate}`;
}