Date.setMilliseconds()
Sets the milliseconds of a date object
var event = new Date('August 19, 1975 23:15:30');
console.log(event.getMilliseconds());
// expected output: 0
event.setMilliseconds(456);
console.log(event.getMilliseconds());
// expected output: 456
Syntax
dateObj.setMilliseconds(millisecondsValue)Parameters
Description
Examples
Using setMilliseconds()
setMilliseconds()References
Contributors to this page
Last updated