Skip to content

Commit

Permalink
remove custom getISOWeek function
Browse files Browse the repository at this point in the history
  • Loading branch information
Kipkemoii committed Jan 6, 2025
1 parent f2a00bd commit 0c9d735
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,22 +362,4 @@ export class PreAppointmentOutreachComponent implements OnInit {
(day - 1) * 24 * 60 * 60 * 1000
);
}

// private getISOWeek(date: Date): number {
// const firstDayOfYear = new Date(date.getFullYear(), 0, 1);
// console.log('current dY OF THE YEAR: ', firstDayOfYear);
// const daysOffset = firstDayOfYear.getDay() - 1;
// const firstMondayOfYear = new Date(
// firstDayOfYear.getFullYear(),
// 0,
// 1 + (daysOffset > 0 ? 7 - daysOffset : 0)
// );

// const daysPassed = Math.floor(
// (date.getTime() - firstMondayOfYear.getTime()) / 86400000
// );
// const weeksPassed = Math.floor(daysPassed / 7) + 1;

// return weeksPassed;
// }
}

0 comments on commit 0c9d735

Please sign in to comment.