JavaScript Reference/Javascript Methods/toUTCString — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"toUTCString()" Example
<source lang="javascript">
<html> <body> <button onclick="var myDate = new Date(); alert(myDate.toUTCString());"> to UTC string </button> </body> </html>
</source>
"toUTCString()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |Date | +----------------+--------------------------------------------------------------+
</source>
"toUTCString()" Syntax Parameters and Note
<source lang="javascript">
Note: Uses UTC time to convert the Date to a locale-specific format.
Syntax:
dateName.toUTCString()
</source>