From 01f484cc6cb22960e4020127a6e755da73e1ec05 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Sun, 11 Dec 2022 00:49:37 +0100 Subject: [PATCH] rudimentary day count (no card) --- pages/index.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 8e5f817..2c9a1a1 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -25,8 +25,15 @@ const PageIndex = () => {
-

Hello!

-

This is the index test page.

+

Hejo!

+

+ Gractwo istnieje od{" "} + {Math.floor( + // (Date.now() - new Date("06.07.2020").getTime()) / 86400000 + (Date.now() - new Date("2020-07-06").getTime()) / 86400000 + )} + {" dni"}. +

);