The setMinutes() method of the Date object changes the minutes for the date according to local time.

    
    const event = new Date('July 20, 2020 21:36:00');

    event.setMinutes(45);

    const minutes = event.getMinutes();

    console.log(minutes);
    // 45