JavaScript Reference/Javascript Methods/setMinutes
"setMinutes()" Example
<html>
<body>
<button onclick="var myDate = new Date(); myDate.setMinutes(2); alert(myDate);">SETMINUTES</button>
</body>
</html>
"setMinutes()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"setMinutes()" Syntax, Parameters and Note
Note:
Sets the minutes.
Syntax:
dateName.setMinutes(param1, param2, param3)
Parameters:
param1 Required; the minutes. Value: 0 to 59.
param2 Optional; the seconds. Value: 0 to 59.
param3 Optional; the milliseconds elapsed during the current second.
Value: 0 to 999.