getUTCMinutes() returns the minute component (0–59) from a Date object in UTC. This guide covers syntax, five examples, comparisons with local getters, and safe UTC time patterns.
01
Syntax
date.getUTCMinutes()
02
Range
0 – 59
03
UTC
Not local
04
vs getMinutes
Can differ
05
Format
HH:MM UTC
06
Validate
Invalid → NaN
Fundamentals
Introduction
Global logs and cron jobs often reference UTC clocks. The JavaScript Date object stores one instant internally; getUTCMinutes() reads the minute hand of the UTC clock—not total minutes elapsed since midnight or since 1970.
If you need minutes for a user-facing local clock, use getMinutes(). Use getUTCMinutes() when your scheduling or display follows UTC boundaries.
Concept
Understanding the getUTCMinutes() Method
Date.prototype.getUTCMinutes() is a zero-argument instance method. It never mutates the original Date—it only reads the UTC minute component as an integer from 0 to 59.
Pair it with getUTCHours(), getUTCSeconds(), and getUTCMilliseconds() to assemble UTC time parts, or use toISOString() when a full UTC string is enough.
💡
Beginner Tip
For elapsed duration between two instants, subtract getTime() values and divide by 60000—do not subtract getUTCMinutes() alone.
Foundation
📝 Syntax
JavaScript
dateObj.getUTCMinutes()
Parameters
None.
Return value
Integer 0–59 for a valid date in UTC.
NaN if dateObj is an invalid Date.
Cheat Sheet
⚡ Quick Reference
Goal
Code
Current UTC minutes
new Date().getUTCMinutes()
Minutes from UTC parts
new Date(Date.UTC(2026, 6, 4, 14, 30)).getUTCMinutes() → 30
Local minutes
date.getMinutes()
Pad to two digits
String(date.getUTCMinutes()).padStart(2, "0")
Elapsed minutes
(end.getTime() - start.getTime()) / 60000
Valid date check
!Number.isNaN(date.getTime())
Compare
📋 getUTCMinutes() vs Similar Methods
UTC getters mirror local getters. Pick the one that matches where your data is displayed or stored.
getUTCMinutes()
0–59
UTC minutes
getMinutes()
local
Local minutes
getUTCHours()
0–23
UTC hour
getTime()
epoch ms
Full instant
Hands-On
Examples Gallery
Open DevTools Console (F12) or use Try-it links. Fixed UTC times use Date.UTC or ISO strings ending in Z for predictable results.
📚 Getting Started
Read the current UTC minute component from a new Date.
Example 1 — Get the Current UTC Minutes
Call getUTCMinutes() on the current instant.
JavaScript
const now = new Date();
const utcMinutes = now.getUTCMinutes();
console.log("UTC minutes:", utcMinutes);
At 20:45 UTC on June 15, it is 02:15 on June 16 in UTC+5:30. getUTCMinutes() stays 45; getMinutes() becomes 15. Use UTC getters when cron rules follow UTC.
Applications
🚀 Common Use Cases
UTC cron jobs — trigger at minute 0 or 30 in UTC.
Log timestamps — show UTC HH:MM in debug panels.
API rate windows — bucket requests by UTC minute.
Manual formatting — build UTC clocks with getters.
Test fixtures — assert minute parts from Date.UTC.
Global dashboards — align charts on UTC minute boundaries.
🧠 How getUTCMinutes() Resolves the Minute
1
Internal instant
The Date stores milliseconds since Unix epoch (UTC).
Storage
2
UTC projection
Engine reads UTC time fields, including the current hour.
UTC
3
Extract minute
Minute within that UTC hour (0–59) is returned.
getUTCMinutes
4
🌐
Format or schedule
Pad for clocks or pair with UTC hour checks.
Important
📝 Notes
getUTCMinutes() is UTC; use getMinutes() for local UI clocks.
Returns 0–59 only—not total minutes since midnight.
For elapsed duration, use (end.getTime() - start.getTime()) / 60000.
Invalid dates propagate NaN—validate with Number.isNaN(date.getTime()).
Pad with padStart(2, "0") for two-digit minute displays.
For full UTC strings, toISOString() is often simpler than manual getters.
Compatibility
Browser & Runtime Support
Date.prototype.getUTCMinutes() has been available since the first JavaScript Date implementation (ES1). It works in every browser and Node.js.
✓ Baseline · ES1
Date.prototype.getUTCMinutes()
Supported in Chrome, Firefox, Safari, Edge, Internet Explorer, and all Node.js versions. No polyfill required.
99%Universal API
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
Date.getUTCMinutes()Excellent
Bottom line: Safe everywhere. Pair UTC getters together and use getTime() for elapsed minute calculations.
Wrap Up
Conclusion
getUTCMinutes() reads the minute component (0–59) from a JavaScript Date in UTC. Use it for UTC clocks and scheduling; use local getters or locale formatters when showing time to end users.