Date getUTCMinutes() Method - Javascript Date

Javascript examples for Date:getUTCMinutes


The getUTCMinutes() method returns the minutes (from 0 to 59), according to universal time.

UTC time is the same as GMT time.



Return Value:

A Number, from 0-59, representing the minutes

The following code shows how to return the minutes, according to universal time:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

function myFunction() {/*from  w w  w  . j  av  a2s .  c om*/
    var d = new Date("July 21, 2020 01:15:00");
    var n = d.getUTCMinutes();
    document.getElementById("demo").innerHTML = n;


Related Tutorials