Sets the date's milliseconds

Description

setMilliseconds
Sets the date's milliseconds. (milliseconds)

Example


      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.





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window