getMinutes (JavaScript)

Gets the minute in local time.

Defined in

Date (Standard - JavaScript)

Syntax

getMinutes() : int
Return value Description
int The minute 0 through 59.

Examples

This button sets global variables to the current hour, minute, second, and millisecond. The global variables might be displayed, for example, as the values for computed fields.
var date = new Date();
sessionScope.hour = date.getHours().toString() + " hours";
sessionScope.minute = date.getMinutes().toString() + " minutes";
sessionScope.second = date.getSeconds().toString() + " seconds";
sessionScope.milli = date.getMilliseconds().toString() + " ms"