Javatpoint Logo
Javatpoint Logo

JavaScript Date getMinutes() method

The JavaScript date getMinutes() method returns the minutes in the specified date on the basis of local time.

Syntax

The getMinutes() method is represented by the following syntax:

Return

An integer value between 0 and 59 that represents the minute.

JavaScript Date getMinutes() method example

Here, we will understand getMinutes() method through various examples.

Example 1

Let's see an example to print the value of current minute.

Test it Now

Output:

9
h3 class="h3">Example 2

Let's see an example to print the value of minute from the given date.

Test it Now

Output:

22

Next TopicJavaScript Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA