JavaScript Date getUTCMinutes() Method

Beginner
⏱️ 8 min read
📚 Updated: Jul 2026
🎯 5 Examples
🚀 5 Try-it labs
UTC minutes (0–59)

What You’ll Learn

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

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.

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.

📝 Syntax

JavaScript
dateObj.getUTCMinutes()

Parameters

  • None.

Return value

  • Integer 0–59 for a valid date in UTC.
  • NaN if dateObj is an invalid Date.

⚡ Quick Reference

GoalCode
Current UTC minutesnew Date().getUTCMinutes()
Minutes from UTC partsnew Date(Date.UTC(2026, 6, 4, 14, 30)).getUTCMinutes() → 30
Local minutesdate.getMinutes()
Pad to two digitsString(date.getUTCMinutes()).padStart(2, "0")
Elapsed minutes(end.getTime() - start.getTime()) / 60000
Valid date check!Number.isNaN(date.getTime())

📋 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

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);
Try It Yourself

How It Works

The value updates each minute and stays between 0 and 59. UTC hours and seconds are separate getters.

📈 Practical Patterns

Fixed times, validation, formatting, and local comparison.

Example 2 — Read Minutes from a Fixed UTC Time

Build a date at 14:30 UTC with Date.UTC.

JavaScript
const eventUtc = new Date(Date.UTC(2026, 6, 4, 14, 30));

console.log(eventUtc.getUTCHours());     // 14
console.log(eventUtc.getUTCMinutes());   // 30
Try It Yourself

How It Works

Date.UTC creates a UTC timestamp. UTC getters read back the same minute everywhere, regardless of the user’s timezone.

Example 3 — Validate Before Calling getUTCMinutes()

Guard against invalid Date objects that yield NaN.

JavaScript
function safeGetUTCMinutes(date) {
  if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
    return null;
  }
  return date.getUTCMinutes();
}

console.log(safeGetUTCMinutes(new Date()));              // e.g. 18
console.log(safeGetUTCMinutes(new Date("not-a-date")));  // null
Try It Yourself

How It Works

getTime() returns NaN on invalid dates. Checking first keeps UTC clock UI from showing broken values.

Example 4 — Build a UTC HH:MM Clock String

Combine padded getUTCHours() and getUTCMinutes().

JavaScript
function formatUtcHourMinute(date) {
  const hours = String(date.getUTCHours()).padStart(2, "0");
  const minutes = String(date.getUTCMinutes()).padStart(2, "0");
  return hours + ":" + minutes + " UTC";
}

console.log(formatUtcHourMinute(new Date(Date.UTC(2026, 6, 4, 9, 5))));
// "09:05 UTC"
Try It Yourself

How It Works

Pad both hours and minutes for a fixed-width UTC clock. For production, Intl.DateTimeFormat with timeZone: "UTC" handles locale rules automatically.

Example 5 — Compare getMinutes() and getUTCMinutes()

The same instant can show different minute values in local time vs UTC.

JavaScript
const date = new Date("2026-06-15T20:45:00.000Z");

console.log("UTC minutes:", date.getUTCMinutes());   // 45
console.log("Local minutes:", date.getMinutes());    // depends on timezone
Try It Yourself

How It Works

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.

🚀 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.

📝 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.

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 Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
Date.getUTCMinutes() Excellent

Bottom line: Safe everywhere. Pair UTC getters together and use getTime() for elapsed minute calculations.

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.

Next, learn getUTCMonth() for the UTC month index, or review getMinutes() for local minute reads.

💡 Best Practices

✅ Do

  • Validate dates before calling getUTCMinutes()
  • Pad minutes for fixed-width UTC clocks
  • Use getTime() for elapsed duration
  • Prefer Date.UTC in tests for stable fixtures
  • Document whether rules follow UTC or local time

❌ Don’t

  • Subtract getUTCMinutes() values for duration
  • Assume getMinutes() equals getUTCMinutes()
  • Display unpadded minutes in strict HH:MM formats
  • Mix local and UTC getters in one label
  • Ignore NaN from bad date parses

Key Takeaways

Knowledge Unlocked

Five things to remember about Date.getUTCMinutes()

Your foundation for UTC minute reads in JavaScript.

5
Core concepts
🔢 02

0–59

UTC minute.

Range
🌐 03

UTC

Not local.

Timezone
04

Pad 2

09:05 UTC.

Format
05

Elapsed

Use getTime().

Pitfall

❓ Frequently Asked Questions

An integer from 0 to 59 representing the minutes within the current UTC hour—not total minutes since midnight or since 1970.
getUTCMinutes() uses UTC rules. getMinutes() uses local timezone rules. They can differ when your offset shifts the hour.
getUTCMinutes() returns 0–59 for the minute hand of the UTC clock. getUTCMilliseconds() returns 0–999 for the fraction inside the current UTC second.
NaN. Validate with Number.isNaN(date.getTime()) before using the result in UI or conditionals.
No for valid dates—the range is 0–59. When minutes overflow via setUTCMinutes, JavaScript normalizes into the next UTC hour.
String(date.getUTCMinutes()).padStart(2, '0') turns 5 into '05' for UTC clock displays like 09:05.
Did you know?

At 2026-06-15T20:45:00.000Z, getUTCMinutes() is always 45, but getMinutes() can be 15 in UTC+5:30—the same instant, different minute on the clock.

Continue to getUTCMonth()

Learn how to read the zero-based UTC month index (0–11, January = 0).

getUTCMonth() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

6 people found this page helpful