From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Date Object
The setUTCDate() method is used to set the day of the month according to Universal Coordinated Time (UTC).
| dateObject.setUTCDate(day) |
| Parameter | Description |
|---|---|
| day | Required. A numeric value (from 1 to 31) that represents a day in a month |
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.
ExampleSet the day of the current month to 15 with setUTCDate():
The output of the code above will be: Try it yourself » |
JavaScript Date Object
From http://www.w3schools.com (Copyright Refsnes Data)