The setUTCMilliseconds() method of the Date object sets the milliseconds of the date (according to UTC).

    
    const event = new Date('2020-11-15T12:38:29.100Z');

    event.setUTCMilliseconds(500);

    const milliseconds = event.getUTCMilliseconds();
    console.log(milliseconds);
    // 500