Date – getUTCMilliseconds()
date.getUTCMilliseconds()
getUTCMilliseconds()
returns the milliseconds of this date
object, according to universal time
Examples
1. get the milliseconds from current date according to universal time
let date = new Date();
console.log(date);
console.log(date.getUTCMilliseconds());