JavaScript getUTCMinutes() | Get the UTC Minutes

The JavaScript getUTCMinutes() method is used to get the minutes (0-59) of the UTC date. UTC stands for Universal Time Coordinated which is same as Greenwich Mean Time (GMT). For example:

HTML with JavaScript Code
<!DOCTYPE html>
<html>
<body>
   
   <p id="xyz"></p>

   <script>
      const d = new Date();
      let minutes = d.getUTCMinutes();
      document.getElementById("xyz").innerHTML = minutes;
   </script>

</body>
</html>
Output

JavaScript getUTCMinutes() Syntax

The syntax of getUTCMinutes() method in JavaScript is:

x.getUTCMinutes()

where x must be an object of the Date() constructor.

The getUTCMinutes() method returns a number from 0 to 59, which will be the minutes of the UTC time.

JavaScript Online Test


« Previous Tutorial Next Tutorial »