JavaScript Reference/Javascript Methods/setUTCDate

Материал из Web эксперт
Перейти к: навигация, поиск

"setUTCDate()" Example

    
<html>
<body>
<button onclick="var myDate = new Date(); myDate.setUTCDate(20); alert(myDate);">SETUTCDATE</button>
</body>
</html>



"setUTCDate()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |Date                                                          |
+----------------+--------------------------------------------------------------+



"setUTCDate()" Syntax, Parameters and Note

Note:
Uses UTC time to set the day of the month.
    
Syntax:
    
dateName.setUTCDate(param1)
Parameters:
    param1   Required; the day of the month. Value: 1 to 31.