setDate < Date < JavaScript
The setDate() method of the Date object changes the day of the month for the date according to local time.
const event = new Date('July 20, 2020 21:36:00');
event.setDate(13);
const newDate = event.getDate();
console.log(newDate);
// 13