Mozilla's getting a new look. What do you think? https://mzl.la/brandsurvey

Date.getMinutes Redirect 1

Summary

The getMinutes() method returns the minutes in the specified date according to local time.

Syntax

dateObj.getMinutes() 

Parameters

None.

Returns

The value returned by getMinutes is an integer between 0 and 59.

Examples

Example: Using getMinutes

The second statement below assigns the value 15 to the variable minutes, based on the value of the Date object Xmas95.

var Xmas95 = new Date("December 25, 1995 23:15:00");
var minutes = Xmas95.getMinutes();

Specifications

Specification Status Comment
ECMAScript 1st Edition. Implemented in JavaScript 1.0 Standard Initial definition.
ECMAScript 5.1 (ECMA-262)
The definition of 'Date.prototype.getMinutes' in that specification.
Standard  
ECMAScript 6 (ECMA-262)
The definition of 'Date.prototype.getMinutes' in that specification.
Draft  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)

See also

Document Tags and Contributors

 Last updated by: Sheppy,