Date().getMinutes() : getMinutes « Date « JavaScript Tutorial






The getMinutes() method returns the minutes portion of the Date object expressed as an integer from 0 to 59.

<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
dateVar = new Date();
alert(dateVar.getMinutes());

//  -->
</script>
</head>
<body>

</body>
</html>








12.10.getMinutes
12.10.1.Date().getMinutes()
12.10.2.Display current time by using Date.getHours(), Date().getMinutes(), Date().getSeconds()