feat: initial commit

(cherry picked from commit 44c4d7b9521fe449e61edc614446195861932f8c)
This commit is contained in:
saicaca committed 2023-10-18 02:15:21 +08:00
1 parent 02b0a65314
commit 124843848f
58 files changed
+13083

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
export function formatDateToYYYYMMDD(date: Date): string {
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, '0');
const day = date.getDate().toString().padStart(2, '0');
return `${year}-${month}-${day}`;
}