Date.getMinutes()
Returns the minutes (from 0-59)
var birthday = new Date('March 13, 08 04:20');
console.log(birthday.getMinutes());
// expected output: 20
Syntax
dateObj.getMinutes()Examples
Using getMinutes()
getMinutes()var Xmas95 = new Date('December 25, 1995 23:15:30');
var minutes = Xmas95.getMinutes();
console.log(minutes); // 15References
Contributors to this page
Last updated