getUTCMinutes()
Date
instance method getterS2C Home
« Globals « Date « getUTCMinutes()
Description
Returns the UTC minute of the hour (0-59) for the specified date.
Syntax
Signature | Description |
---|---|
aDate.getUTCMinutes() | Returns the UTC minute of the hour (0-59) for the specified date. |
Parameters
None.
Examples
The code below shows an example of the getUTCMinutes()
method of Date
.
// Create a Date instance for the current date and time.
var todaysDate = new Date();
alert(todaysDate);
// Get UTC minutes of the hour.
alert(todaysDate.getUTCMinutes() + ' = UTC Minute of the hour');
Related Tutorials
JavaScript Intermediate Tutorials - Lesson 2 - Dates and Times