Get Sunday of the current week

I’m trying to create a countdown for a church my goal is to show the days left for every Sunday Service.

I have this code but only works with date and time picker I would like to change the date and time picker and create a code that to refer to each Sunday of the week and time at 10:00 am, in that way, i dont have to update the date and time picker every single time

any help well be appriciate it

Thank you

//WHERE ALL ACTIONS HAPPEN⚡
$w.onReady(function () {
setInterval(updateTimer, 1000);

$w("#datePicker").onChange(function () {
    dateSelected();
    console.log(dateSelected())
});

$w("#timePicker").onChange(function () {
    timeSelected();
    console.log(timeSelected())
});

});

//DATE FUNCTION :tada:

function dateSelected() {
let dateVal = $w(“#datePicker”).value.toLocaleDateString();
return dateVal;
}

//TIME FUNCTION :tada:
function timeSelected() {
let timeVal = $w(“#timePicker”).value;
return timeVal;
}

//MAIN TIMER FUNCTION :zap:
function updateTimer() {

let countDownDay = Date.parse(`${dateSelected()} ${timeSelected()}`);
let now = Number(new Date());
let date = countDownDay - now;

let days = Math.floor(date / (1000 * 60 * 60 * 24));
let hours = Math.floor(date / (1000 * 60 * 60));
let mins = Math.floor(date / (1000 * 60));
let secs = Math.floor(date / 1000);

let dayDisplay = checkTimerZeros((days).toLocaleString());
let hourDisplay = checkTimerZeros((hours - days * 24).toLocaleString());
let minuteDisplay = checkTimerZeros((mins - hours * 60).toLocaleString());
let secondsDisplay = checkTimerZeros((secs - mins * 60).toLocaleString());

//ADD FOR VALID TIME
if (date > 0) {
    $w("#day").text = dayDisplay;
    $w("#hour").text = hourDisplay;
    $w("#minute").text = minuteDisplay;
    $w("#second").text = secondsDisplay;

    $w("#discountText").hide();
    $w("#box5, #box6, #box7, #box8").style.backgroundColor = "rgba(10, 10, 10, 0.80)";
    // $w("#countDownTimer").show()

    //SET COUNTDOWN TO DEFAULT IF THE TIME IS REACHED😍// ADD FOR INVALID TIME
} else if (date < 0) {
    $w("#day").text = "00";
    $w("#hour").text = "00";
    $w("#minute").text = "00";
    $w("#second").text = "00";

    $w("#discountText").show();
    $w("#box5, #box6, #box7, #box8").style.backgroundColor = "rgba(245, 49, 49)";
    // $w("#countDownTimer").hide()
}

}

//ADD A ZERO IN FRONT IF VALUE IS LESS THAN 10🚀
function checkTimerZeros(i) {
if (i < 10) {
i = “0” + i;
}
return i;
}
//END :arrow_forward:

This is more of a general JavaScript question which we don’t often answer but here’s an example of how to do something very close to this from Stackoverflow: date - How to get first and last day of the current week in JavaScript - Stack Overflow