Easy Tutorial
❮ Dom Obj Reset Prop Style Backgroundclip ❯

JavaScript getUTCDate() Method

JavaScript Date Object

Example

Returns the day of the month (UTC) according to universal time:

n Output result:


Definition and Usage

The getUTCDate() method returns the day of the month (UTC) according to universal time.

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

Note: Coordinated Universal Time, also known as Universal Coordinated Time, World Standard Time, and International Coordinated Time, is abbreviated as UTC.

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


Browser Support

The getUTCDate() method is supported by all major browsers.


Syntax

Return Value

Type Description
Number Returns the day of the month (a value between 1 and 31).

Technical Details

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


More Examples

Example

We define a variable with a specific date, then output the day of the month from that variable according to UTC:

n Output result:


JavaScript Date Object

❮ Dom Obj Reset Prop Style Backgroundclip ❯