JavaScript .getUTCMinutes()

Anonymous contributor's avatar
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).

  • Front-end engineers work closely with designers to make websites beautiful, functional, and fast.
    • Includes 34 Courses
    • With Professional Certification
    • Beginner Friendly.
      115 hours
  • Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
    • Beginner Friendly.
      15 hours

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

Contribute to Docs

Learn JavaScript on Codecademy

  • Front-end engineers work closely with designers to make websites beautiful, functional, and fast.
    • Includes 34 Courses
    • With Professional Certification
    • Beginner Friendly.
      115 hours
  • Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
    • Beginner Friendly.
      15 hours