configure typescript + begin conversion

This commit is contained in:
p2405951
2026-01-28 16:29:41 +01:00
parent 3c71e0c7b2
commit ea6fd94962
14 changed files with 381 additions and 128 deletions
+9
View File
@@ -0,0 +1,9 @@
export default function formatDate(d: string | Date): string {
const date = d instanceof Date ? d : new Date(d);
const jj = String(date.getUTCDate()).padStart(2, "0");
const mm = String(date.getUTCMonth() + 1).padStart(2, "0");
const aaaa = date.getUTCFullYear();
return `${jj}/${mm}/${aaaa}`;
}