Javascript Date getUTCMilliseconds()
returns the UTC date's milliseconds.
An integer number, between 0 and 999, representing the milliseconds portion of the given date object.
let today = new Date(); let milliseconds = today.getUTCMilliseconds(); console.log(milliseconds);/* www . ja va 2s . c om*/
Return the UTC milliseconds from a specific date and time:
var d = new Date("July 21, 2010 01:15:00:195"); var n = d.getUTCMilliseconds(); console.log(n);/*from ww w. j ava 2s . c o m*/