setUTCMilliseconds Method (Date) (JavaScript)
JavaScript - Internet Explorer 10
Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
dateObj.setUTCMilliseconds(numMilli)
The following example illustrates the use of the setUTCMilliseconds method.
function SetUTCMSecDemo(nmsec){ // Create Date object. var d = new Date(); // Set UTC milliseconds. d.setUTCMilliseconds(nmsec); var s = "Current setting is "; s += d.toUTCString(); s += " and " + d.getUTCMilliseconds(); s += " milliseconds" return(s); }
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards. Also supported in Windows Store apps. See Version Information.
Applies To: Date Object (JavaScript)