Kaynağa Gözat

Start working on date utility service

arvid-e 7 ay önce
ebeveyn
işleme
88f1deb773
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  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()));
+
+};