From d5fb1c36a1665bad8b6738ae91339ff7c9ee01cc Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Tue, 11 Jun 2024 16:34:44 +0200 Subject: [PATCH] Update +page.svelte --- src/routes/zhen/cv/rev1/+page.svelte | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/routes/zhen/cv/rev1/+page.svelte b/src/routes/zhen/cv/rev1/+page.svelte index ab43c34..721d9a0 100644 --- a/src/routes/zhen/cv/rev1/+page.svelte +++ b/src/routes/zhen/cv/rev1/+page.svelte @@ -35,9 +35,18 @@ } }); + function getFormattedDate(): string { + const date = new Date(); + const day = String(date.getDate()).padStart(2, '0'); + const month = String(date.getMonth() + 1).padStart(2, '0'); + const year = date.getFullYear(); + + return `${day}-${month}-${year}`; + } + -Zhentao Wei's Epos CV +Zhentao Wei's CV {getFormattedDate()}