JavaScript Tutorial/Date/toUTCString

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


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().

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