const today = new Date();
const first = today.getDate() - today.getDay();
const last = first + 6;
const firstday = new Date(today.setDate(first)).toUTCString();
const lastday = new Date(today.setDate(last)).toUTCString();
console.log(firstday);
console.log(lastday);
/*
run:
"Sun, 10 Apr 2022 16:35:07 GMT"
"Sat, 16 Apr 2022 16:35:07 GMT"
*/