Language Reference setMinutes Method


Description

Modifies the minutes stored in the Date object.

Syntax

dateObj.setMinutes( numMinutes )

Arguments

numMinutes: A numeric value equal to the desired minutes value.

Remarks

If the value of numMinutes is greater than 59 or negative, the stored hours (and date, and month, and so on) will be modified accordingly. For example, if the stored date is "Jan 5, 1996 00:00:00" and setMinutes(90) is called, the date will be changed to "Jan 5, 1996 01:30:00". Negative numbers have a similar behavior.