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