getHours < Date < JavaScript
The getHours() method of the Date object returns the hours for the date according to local time.
const event = new Date('July 20, 2020 21:36:00');
const hours = event.getHours();
console.log(hours);
// 21