Browse Source

Start working on date utility service

arvid-e 7 tháng trước cách đây
mục cha
commit
88f1deb773
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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()));
+
+};