Tutorials Point


  JavaScript Basics
  JavaScript Objects
  JavaScript Advanced
  JS Useful References
  JS Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

Javascript Date getUTCMinutes() Method


previous next AddThis Social Bookmark Button


Advertisements

Description:

Javascript date getUTCMinutes() method returns the minutes in the specified date according to universal time. The value returned by getUTCMinutes is an integer between 0 and 59.

Syntax:

Date.getUTCMinutes()

Here is the detail of parameters:

  • NA

Return Value:

Returns the minutes in the specified date according to universal time.

Example:

The following example prints the minutes portion of the current time to the variable hrs.

<html>
<head>
<title>JavaScript getUTCMinutes Method</title>
</head>
<body>
<script type="text/javascript">
   var dt = new Date();
   document.write("getUTCMinutes() : " + dt.getUTCMinutes() ); 
</script>
</body>
</html>

This will produce following result for Indian time zone:

getUTCMinutes() : 32 

To understand it in better way you can Try it yourself.



previous next Printer Friendly

Advertisements


  

Advertisements