JavaScript Date setMilliseconds()
Description
setMilliseconds() sets the milliseconds of a date.
See Also:
Syntax
Date.setMilliseconds(millisec)
Parameters
| millisec | Required. The milliseconds.
(0 to 999), but other values are allowed: -1 gives the last millisecond of the previous second |
Return Value
| NONE
Changes the Date object in place. |
Browser Support
setMilliseconds() is an ECMAScript1 (JavaScript 1997) feature.
It is supported in all browsers:
| Chrome | Edge | Firefox | Safari | Opera |