getters

Date.prototype.getMinutes

Returns the minutes portion of the date in LOCAL time as an integer from 0 to 59. The identically shaped getSeconds (0-59) and getMilliseconds (0-999) round out the sub-hour getters.

date.getMinutes()

Parameters

Parameter Purpose
() no arguments; returns 0-59
getSeconds() 0-59 seconds portion
getMilliseconds() 0-999 ms portion

Examples

console.log(new Date('2026-07-19T15:30:45.123Z').getUTCMinutes()); // 30

just the minutes

console.log(new Date('2026-07-19T15:30:45.123Z').getUTCSeconds()); // 45

seconds companion

console.log(new Date('2026-07-19T15:30:45.123Z').getUTCMilliseconds()); // 123

ms companion

Gotcha

Local minutes can differ from UTC minutes in timezones with 30- or 45-minute offsets (e.g. India UTC+05:30, Nepal UTC+05:45).

Related

← All JS Date methods · Math methods · Cron syntax