Example of getMinutes() function in Javascript

The getMinutes() method returns the minute attribute of a Date instance.The integer returned is always from 0 to 59.

var now = new Date()
var minute = now.getMinutes()
document.write(minute)

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.