JavaScript setMilliseconds() Method: Date Object
Description
The setMilliseconds() method is used to set the milliseconds for a given date according to local time.
Version
Implemented in JavaScript 1.3
Syntax
setMilliseconds(millisecondsValue)
Parameter
millisecondsValue: An integer between 0 and 999, representing the milliseconds.

Example:
In the following web document setMilliseconds() method sets the milliseconds to 372 of a given date.
View the example in the browser
Supported Browser
Internet Explorer 7 | Firefox 3.6 | Google Chrome 7 | Safari 5.0.1 | Opera 10 |
Yes | Yes | Yes | Yes | Yes |
See also:
JavaScript Core objects, methods, properties.
Previous: JavaScript setHours() Method: Date Object
Next: JavaScript setMinutes() Method: Date Object
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics