Jsref Getminutes
# JavaScript getMinutes() Method
[ JavaScript Date Object](#)
## Example
Returns the minutes of the time based on local time:
var d = new Date();
var n = d.getMinutes();
_n_ Output:
12
[Try it Β»](#)
* * *
## Definition and Usage
The getMinutes() method returns the minutes of the time.
* * *
## Browser Support

The getMinutes() method is supported by all major browsers.
* * *
## Syntax
_Date_.getMinutes()
## Return Value
| Type | Description |
| --- | --- |
| Number | The minutes of the date object, displayed in local time. Returns an integer between 0 and 59. |
## Technical Details
| JavaScript Version: | 1.0 |
| --- |
* * *
## More Examples
## Example
Returns the minutes of a specified date and time:
var d = new Date("July 21, 1983 01:15:00");
var n = d.getMinutes();
_n_ Output:
15
[Try it Β»](#)

(#)
How to use getHours(), getMinutes(), and getSeconds() to display the current time.
* * JavaScript Date Object](#)
YouTip