From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Date Object
The setDate() method is used to set the day of the month.
| dateObject.setDate(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.
ExampleSet the day of the current month to 15:
The output of the code above will be: Try it yourself » |
JavaScript Date Object
From http://www.w3schools.com (Copyright Refsnes Data)