80
JavaScript Date getMinutes() method
The JavaScript date getMinutes() method returns the minutes in the specified date on the basis of local time.
Syntax
The getMinutes() method is represented by the following syntax:
Return
An integer value between 0 and 59 that represents the minute.
JavaScript Date getMinutes() method example
Here, we will understand getMinutes() method through various examples.
Example 1
Let’s see an example to print the value of current minute.
Output:
9
h3 class=”h3″>Example 2
Let’s see an example to print the value of minute from the given date.
Output:
22
Next TopicJavaScript Math