Sets the UTC date's minutes. Setting the minutes to a number greater than 59 also increments the hour.
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.