From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Date Object
The getUTCDate() method returns the day of the month according to the Universal Coordinated Time (UTC).
| dateObject.getUTCDate() |
Note: The value returned by getUTCDate() is a number between 1 and 31.
Note: This method is always used in conjunction with a Date object.
Tip: The Universal Coordinated Time (UTC) is the time set by the World Time Standard.
Example 1Get the current day of the month according to UTC:
Try it yourself » |
Example 2Get the UTC day of a specific date and time:
Try it yourself » |
JavaScript Date Object
From http://www.w3schools.com (Copyright Refsnes Data)