Sets the UTC date's minutes

Description

setUTCMinutes(minutes)
Sets the UTC date's minutes. Setting the minutes to a number greater than 59 also increments the hour.

Example


      var myDate = new Date();
      /*from   www  . jav a  2s.  c o  m*/
      myDate.setUTCMinutes(21);
      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