Date.prototype.getMinutes() returns the minutes for this date as an integer 0–59 in local time (MDN). It is read-only and does not change the Date.
Remember
date.getMinutes()
→ integer 0 … 59
→ NaN if the Date is invalid
Example (MDN-style):
new Date(2008, 2, 13, 4, 20).getMinutes() → 20
getMinutes() → local minutes
getUTCMinutes() → UTC minutes
Syntax
Call date.getMinutes. Start with this line.
JavaScript
date.getMinutes()
Call
What it does
date.getMinutes()
Primary signature.
date.getMinutes(...)
Call with the arguments your case needs.
Built into JavaScript. Call getMinutes(...) on a Date instance — no import required.
Library declarations
JavaScript
date.getMinutes()
Parameters
This method has no parameters beyond those shown in the signature.
Return Value
Return Value
Description
*
The value returned by date.getMinutes().
JavaScript Examples
Example 1 — Read the Local Minutes
Call getMinutes() on fixed local date-times (MDN-style values).
JavaScript
const morning = new Date(2008, 2, 13, 4, 20); // Mar 13, 2008 04:20
const night = new Date(1995, 11, 25, 23, 15, 30);
console.log(morning.getMinutes()); // 20
console.log(night.getMinutes()); // 15
Build local times. Month indexes are zero-based (2 = March, 11 = December).
Morning.04:20 → getMinutes() returns 20.
Evening.23:15 → 15.
No mutation. The Date values are unchanged.
Example 2 — getMinutes() vs getUTCMinutes()
Local and UTC minutes can disagree near hour boundaries.
JavaScript
const d = new Date("1995-12-25T23:15:30Z"); // 23:15 UTC
console.log(d.getUTCMinutes()); // 15
console.log(d.getMinutes()); // local minutes (often 15, sometimes not)