The getMilliseconds() method of the Date object returns the milliseconds for the date according to local time.

    
    const event = new Date('July 20, 2020 21:36:00');

    event.setMilliseconds(456);

    const milliseconds = event.getMilliseconds();

    console.log(milliseconds);
    // 456