getMonth < Date < JavaScript
The getMonth() method of the Date object returns the number of the month for the date as a zero-based value according to local time. January returns 0 and December returns 11.
const event = new Date('July 20, 2020 21:36:00');
const month = event.getMonth();
console.log(month);
// 6