90
JavaScript Date getUTCMinutes() method
The JavaScript date getUTCMinutes() method returns the minutes for the specified date on the basis of universal time.
Syntax
The getUTCMinutes() method is represented by the following syntax:
Return
An integer value between 0 and 59 that represents the minute.
JavaScript Date getUTCMinutes() method example
Here, we will understand getUTCMinutes() method through various examples.
Example 1
Let’s see an example to print the value of current minute according to universal time.
Output:
Minute value : 45
Example 2
Let’s see an example to print the value of minute from the given date according to universal time.
Output:
Minute value1 : 59 Minute value2 : 29
Next TopicJavaScript Date