setHours < Date < JavaScript
The setHours() method of the Date object changes the hours for the date according to local time. (The minutes, seconds and milliseconds can be passed/changed, too.)
const event = new Date('July 20, 2020 21:36:00');
event.setHours(10);
const newHours = event.getHours();
console.log(newHours);
// 10