Return the day of the month, according to universal time:
The result of n will be:
The getUTCDate() method returns the day of the month (from 1 to 31) of the date object, according to universal time.
The UTC methods calculate their date assuming that the date object is of local time and date.
Tip: The Universal Coordinated Time (UTC) is the time set by the World Time Standard.
Note: UTC time is the same as GMT time.
![]()
The getUTCDate() method is supported in all major browsers.
| Type | Description |
|---|---|
| Number | A Number, from 1 to 31, representing the day of the month |
| JavaScript Version: | 1.3 |
|---|
Return the UTC day of the month of a specific, local time, date-time:
The result of n will be:
JavaScript Date Object
Your message has been sent to W3Schools.