How to use the getMinutes in JavaScript

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

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:



JavaScript Code:



    <title>JavaScript getMinutes Method</title>



    <script type="text/javascript">

        var dt = new Date("December 20, 2001 12:25:00");

        document.write("getMinutes() : " + dt.getMinutes());






Ask Your Question 

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

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.