This method is used to returns the minutes according to the local time in the specified date. This method returns and integer value between 0 and 59. The syntax of using this method is as follows: Syntax:
JavaScript Code:
<html>
<head>
<title>JavaScript getMinutes Method</title>
</head>
<body>
<script type="text/javascript">
var dt = new Date("December 20, 2001 12:25:00");
document.write("getMinutes() : " + dt.getMinutes());
</script>
</body>
</html>
Output:
Ask Your Question
Got a programming related question? You may want to post your question here Programming Answers here