setUTCDate < Date < JavaScript
The setUTCDate() method of the Date object changes the day of the month for the date according to universal time.
const event = new Date('August 19, 1975 13:15:30 GMT-5:00');
console.log(event.getUTCDate());
// 19
event.setUTCDate(10);
const date = event.getUTCDate();
console.log(date);
// 10