Refresh

This website www.w3schools.blog/getminutes-javascript-js is currently offline. Cloudflare\'s Always Online™ shows a snapshot of this web page from the Internet Archive\'s Wayback Machine. To check for the live version, click Refresh.

JavaScript Date getMinutes()

The JavaScript date getMinutes() method is used to get the integer value between 0 and 59 that represents the minutes based on the local time.

Syntax:

dateObj.getMinutes()

Return:
An integer value between 0 and 59.

Example:

<!DOCTYPE html>
<html>
<body>
<script>
var d = new Date("March 16, 2018 13:34:45:500");
var n = d.getMinutes();
document.writeln(n)
</script>
</body>
</html>