Return the day of the month, according to universal time:
The result of n will be:
More "Try it Yourself" examples below.
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.
Method | |||||
---|---|---|---|---|---|
getUTCDate() | Yes | Yes | Yes | Yes | Yes |
None |
Return Value: | 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: