JavaScript Reference/Javascript Methods/toGMTString

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

"toGMTString()" Example

    
<html>
<body>
<button onclick="var myDate = new Date(); 
                 alert(myDate.toGMTString());">
GMT String
</button>
</body>
</html>



"toGMTString()" is applied to

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



"toGMTString()" Syntax Parameters and Note

Note:
Convert the date to a locale specific format.
    
Syntax:
    
dateName.toGMTString()