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