Easy Tutorial
❮ Prop Style Wordbreak Prop Tableheader Headers ❯

JavaScript getMinutes() Method

JavaScript Date Object

Example

Returns the minutes of the time according to local time:

n Output result:


Definition and Usage

The getMinutes() method returns the minutes field of the time.


Browser Support

All major browsers support the getMinutes() method.


Syntax

Return Value

Type Description
Number The minutes field of the date object, displayed in local time. The return value is an integer between 0 and 59.

Technical Details

| JavaScript Version: | 1.0 | | --- | --- |


More Examples

Example

Returns the minutes of the set date and time:

n Output result:

15

Display Current Time


JavaScript Date Object

❮ Prop Style Wordbreak Prop Tableheader Headers ❯