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

    
    const date = new Date('2020-06-07T03:04:05.532Z');

    const utcMilliseconds = date.getUTCMilliseconds();

    console.log(utcMilliseconds);
    // 532