Sets the UTC date's milliseconds. (milliseconds)
var myDate = new Date();
/*from w w w. ja va 2 s .com*/
myDate.setUTCMilliseconds(12);
console.log(myDate.toString());
The code above generates the following result.