// Get the current date
let currentDate = new Date();
// Get the current day of the week (0-6, where 0 is Sunday)
let currentDay = currentDate.getDay();
// Calculate the number of days to subtract to get to Monday (assuming Monday is the first day of the week)
let daysToMonday = currentDay === 0 ? 6 : currentDay - 1;
// Subtract the number of days to get to Monday
let mondayDate = new Date(currentDate.getTime() - (daysToMonday * 24 * 60 * 60 * 1000));
// Set the time of the date to 00:00 UTC
mondayDate.setUTCHours(0, 0, 0, 0);