Language Reference getMinutes Method


Description

The getMinutes method is used to retrieve the minutes value stored in the Date object.

Syntax

var intMinutes = objDate.getMinutes( )

Return Value

An integer between 0 and 59 equal to the minutes value stored in the Date object.

Arguments

The getMinutes method has no arguments.

Remarks
The getMinutes method returns zero in two situations: the time is less than one minute after the hour, or the time was not stored in the Date object when the object was created. The only way to determine the difference is to also check the hours and seconds for zero values. If they are all zeroes, it is nearly certain that the time was not stored in the date object.