JavaScript Tutorial/Date/toUTCString — различия между версиями
Admin (обсуждение | вклад) м (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>