JavaScript getUTCMinutes Function

JavaScript getUTCMinutes function is one of the Date Function, which returns the total minutes in a given date according to universal time. The syntax of the JavaScript getUTCMinutes function is:

 Date.getUTCMinutes()

JavaScript getUTCMinutes Function Example

We are using getUTCMinutes to return the total minutes as per the universal time from the current date and time.

<!DOCTYPE html>
<html>
<head>
    <title> JavaScript Get UTC Minutes Function </title>
</head>
<body>
    <h1> JavaScript getUTCMinutes Function Example </h1>
<script>
  var dt = Date();  
  document.write("Date and Time : " + dt);
  document.write("UTC Minutes using getUTCMinutes : " + dt.getUTCMinutes());
</script>
</body>
</html>
JavaScript getUTCMinutes  Function Example

Date and Time: Mon Nov 05 2018 11:17:31 GMT+0530 (Indian Standard Time)
UTC Minutes using getUTCMinutes : 47

JavaScript get UTC Minutes Function Example 2

In this JavaScript get UTC Minutes example, we are displaying the minutes from the custom date and time as per universal time.

<!DOCTYPE html>
<html>
<head>
    <title> JavaScript Get UTC Minutes Function </title>
</head>
<body>
    <h1> JavaScript getUTCMinutes Function Example </h1>
<script>
  var dt = Date("April 1, 2017 10:12:22");
  document.write("Date and Time : " + dt);
  document.write("UTC Minutes using getUTCMinutes : " + dt.getUTCMinutes());
</script>
</body>
</html>
JavaScript getUTCMinutes Function 2