Date.prototype.getMinutes()
Returns the minutes of a date in local time.
Syntax
date.getMinutes()
Returns
number — The minutes, 0 through 59.
Examples
const d = new Date("2026-05-15T14:07:00");
console.log(d.getMinutes());
Output
7
const d = new Date("2026-05-15T14:00:00");
console.log(d.getMinutes());
Output
0
Notes
- Always in the range 0-59.
- Use `getUTCMinutes()` for minutes in UTC.
Browser & runtime support
| Environment | Since version |
|---|---|
| chrome | 1.0 |
| firefox | 1.0 |
| safari | 1.0 |
| edge | 12 |
| node | 0.10 |