Easy Tutorial
❮ Prop Search Maxlength Prop Text Required ❯

JavaScript getUTCMonth() Method

JavaScript Date Object

Example

Returns the month according to Coordinated Universal Time (UTC):

n Output result:


Definition and Usage

The getUTCMonth() method returns the month in the specified date according to universal time.

Note: January is 0, February is 1, and so on.

Coordinated Universal Time (UTC) is a time standard based on atomic time, aiming to be as close as possible to mean solar time.

Tip: Coordinated Universal Time, also known as Universal Coordinated Time, World Standard Time, or International Coordinated Time, abbreviated as UTC.

Note: UTC time is the same as GMT (Greenwich Mean Time).


Browser Support

All major browsers support the getUTCMonth() method.


Syntax

Return Value

Type Description
Number An integer between 0 (January) and 11 (December).

Technical Details

| JavaScript Version: | 1.3 | | --- | --- |


More Examples

Example

Now, we will create an array to output the month name instead of just a number:

n Output result:


JavaScript Date Object

❮ Prop Search Maxlength Prop Text Required ❯