Back

dateObj.getUTCMinutes()

dateObj.getUTCMinutes()

The getUTCMinutes() method returns the minutes in the specified date according to universal time.

Syntax

dateObj.getUTCMinutes()

Parameters

None.

Return value

The value returned by getUTCMinutes() is an integer between 0 and 59.

Examples

Using getUTCMinutes()

The following example assigns the minutes portion of the current time to the variable minutes.

var today = new Date();
var minutes = today.getUTCMinutes();

  Created by Mozilla Contributors, license: CC-BY-SA 2.5