JavaScript Reference/Javascript Methods/setDate
"setDate()" Example
<html>
<body>
<button onclick="var myDate = new Date(); myDate.setDate(20); alert(myDate);">SETDATE</button>
</body>
</html>
"setDate()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"setDate()" Syntax, Parameters and Note
Note:
Sets the day of the month.
Syntax:
dateName.setDate(param1)
Parameters:
param1 Required; the day of the month. Value: 1 to 31.