ES6 - getMinutes() Method



JavaScript date getMinutes() method returns the minutes in the specified date according to local time. The value returned by getMinutes is an integer between 0 and 59.

Syntax

Date.getMinutes ()   

Return Value

Returns the minutes in the specified date according to local time.

Example

var dt = new Date("December 25, 1995 23:15:00"); 
console.log("getMinutes() : " + dt.getMinutes());   

Output

getMinutes() : 15 
Advertisements