Date.getUTCMilliseconds()
Returns the milliseconds, according to universal time (from 0-999)
var exampleDate = new Date('2018-01-02T03:04:05.678Z'); // 2 January 2018, 03:04:05.678 (UTC)
console.log(exampleDate.getUTCMilliseconds());
// expected output: 678
Syntax
dateObj.getUTCMilliseconds()Examples
Using getUTCMilliseconds()
getUTCMilliseconds()var today = new Date();
var milliseconds = today.getUTCMilliseconds();References
Contributors to this page
Last updated