Date.setUTCMilliseconds()
Sets the milliseconds of a date object, according to universal time
var date1 = new Date('2018-01-24T12:38:29.069Z');
console.log(date1.getUTCMilliseconds());
// expected output: 69
date1.setUTCMilliseconds(420);
console.log(date1.getUTCMilliseconds());
// expected output: 420
Syntax
dateObj.setUTCMilliseconds(millisecondsValue)Parameters
Description
Examples
Using setUTCMilliseconds()
setUTCMilliseconds()References
Contributors to this page
Last updated