JavaScript setUTCMilliseconds() Method: Date Object
Description
The setUTCMilliseconds() method is used to set the milliseconds for a specified date according to Coordinated Universal Time (UTC).
Version
Implemented in JavaScript 1.3
Syntax
setUTCMilliseconds(millisecondsValue)
Parameter
millisecondsValue: An integer between 0 and 999, representing the milliseconds.

Example :
In the following web document setUTCMilliseconds() method sets the milliseconds to 722.
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 setUTCHours() Method: Date Object
Next: JavaScript setUTCMinutes() Method: Date Object
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics