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