JavaScript Reference/Javascript Methods/setDate
Версия от 18:30, 25 мая 2010; (обсуждение)
"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.