Date.prototype.getUTCMinutes() returns the minutes for this date as an integer 0–59 according to universal time (UTC) (MDN). It is read-only and does not change the Date.
Remember
date.getUTCMinutes()
→ integer 0 … 59 (UTC)
→ NaN if the Date is invalid
Example (MDN):
new Date("1 January 2000 03:15:30 GMT+07:00").getUTCMinutes() → 15
new Date("1 January 2000 03:15:30 GMT+03:30").getUTCMinutes() → 45
getUTCMinutes() → UTC minutes
getMinutes() → local minutes
Syntax
Call date.getUTCMinutes. Start with this line.
JavaScript
date.getUTCMinutes()
Call
What it does
date.getUTCMinutes()
Primary signature.
date.getUTCMinutes(...)
Call with the arguments your case needs.
Built into JavaScript. Call getUTCMinutes(...) on a Date instance — no import required.
Library declarations
JavaScript
date.getUTCMinutes()
Parameters
This method has no parameters beyond those shown in the signature.
Return Value
Return Value
Description
*
The value returned by date.getUTCMinutes().
JavaScript Examples
Example 1 — Read the UTC Minutes
MDN: same local-looking times with different offsets → different UTC minutes.
JavaScript
const date1 = new Date("1 January 2000 03:15:30 GMT+07:00");
const date2 = new Date("1 January 2000 03:15:30 GMT+03:30");
console.log(date1.getUTCMinutes()); // 15
console.log(date2.getUTCMinutes()); // 45
Parse. Each string includes a GMT offset, so JavaScript stores a UTC instant.
date1.GMT+07:00 → UTC 20:15 → minutes 15.
date2.GMT+03:30 → UTC 23:45 → minutes 45.
Lesson. The offset in the string changes the UTC minute — not just “03:15” as typed.
Example 2 — getUTCMinutes() vs getMinutes()
UTC and local minutes can disagree when the timezone shifts the clock.
JavaScript
const d = new Date("1995-12-25T23:15:30Z"); // 23:15:30 UTC
console.log(d.getUTCMinutes()); // 15
console.log(d.getMinutes()); // local minutes (often not 15)