Sets the date's milliseconds. (milliseconds)
var myDate = new Date(); /* ww w . ja v a 2 s. c o m*/ myDate.setMilliseconds(123); console.log(myDate.toString());
The code above generates the following result.