Procházet zdrojové kódy

Start working on date utility service

arvid-e před 7 měsíci
rodič
revize
88f1deb773
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      apps/app/src/server/routes/contributions.ts

+ 8 - 0
apps/app/src/server/routes/contributions.ts

@@ -0,0 +1,8 @@
+// !!
+// not sure where to put the utility functions
+// so put them here temporarely
+
+export const getCurrentWeekNumber = (date: Date) => {
+  const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
+
+};