JavaScript Reference/Javascript Methods/getUTCDay — различия между версиями

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

Текущая версия на 08:22, 26 мая 2010

"getUTCDay()" Example

    
<html>
<body>
<button onclick="var myDate = new Date(); 
                 alert(myDate.getUTCDay());">get UTC Day</button>
</body>
</html>



"getUTCDay()" is applied to

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



"getUTCDay()" Syntax, Parameters and Note

Note:
Returns the week day based on UTC time. 
Return values: 
0 to 6, 
with 0 representing Sunday and 6 representing Saturday.
    
Syntax:
    
dateName.getUTCDay()