.getUTCMinutes()
Anonymous contributor
Published Jun 14, 2023
Contribute to Docs
The .getUTCMinutes()
method returns the minutes for the date provided according to Coordinated Universal Time (UTC).
Syntax
myDate.getUTCMinutes()
The .getUTCMinutes()
method returns the minutes as an integer between 0
and 59
for the provided date, myDate
, according to UTC time.
Example
The following example uses the .getUTCMinutes()
method to get the minutes of 2023-06-13T16:27:00.175Z
and logs the result to the console:
const myDate = new Date('2023-06-13T16:27:00.175Z');const minutes = myDate.getUTCMinutes();console.log(minutes);
This outputs the following:
27
All contributors
- Anonymous contributor
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn JavaScript on Codecademy
- Career path
Front-End Engineer
Front-end engineers work closely with designers to make websites beautiful, functional, and fast.Includes 34 CoursesWith Professional CertificationBeginner Friendly115 hours - Free course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner Friendly15 hours