getMinutes()
ES1+Returns the minutes (0-59) in the specified date according to local time.
Syntax
date.getMinutes()Return Value
number
A number (0-59) representing the minutes
Examples
JavaScript
const date = new Date('2024-01-15T14:30:45');
console.log(date.getMinutes()); Output:
// 30