JavaScript Tutorial/Date/toUTCString — различия между версиями

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

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

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>