getMinutes method

The getMinutes method is applied to the date object and returns the current minutes value (a number from 0 to 59).

Syntax

javascriptdate.getMinutes();

Example

Let's output the current number of minutes:

javascriptlet date = new Date();
let res = date.getMinutes();

console.log(res);

See also