Sets the date's minutes

Description

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

Example


//from  w ww .ja  va 2s  .co  m
      var myDate = new Date();
      
      myDate.setMinutes(12);
      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