'toGMTString()' Example : toGMTString « Javascript Methods « JavaScript Reference

'toGMTString()' Example

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

    
      
      








Related examples in the same category

1.'toGMTString()' Syntax Parameters and Note
2.'toGMTString()' is applied to