How to use the getMinutes in JavaScript

In this article we will discuss about How to use the getMinutes() method in JavaScript.
  • 1889

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:

Date.getMinutes()

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:

myoutput5.jpg

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.