Date.toUTCString() : toUTCString : Date JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Date » toUTCString »

 

Date.toUTCString()









The toUTCString() method returns a string representing the universal time of the Date object.

The date is converted to the GMT time zone before being converted to a string.

This method is exactly the same as the toGMTString().












<html>
    <script language="JavaScript">
    <!--
    theDate = new Date();

    document.write(theDate.toUTCString());

    -->
    </script>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Date
» toUTCString