JavaScript Reference/Javascript Methods/getDay — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"getDay()" Example
<source lang="javascript">
<html> <body> <button onclick="var myDate = new Date(); alert(myDate.getDay());"> get day </button> </body> </html>
</source>
"getDay()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |Date | +----------------+--------------------------------------------------------------+
</source>
"getDay()" Syntax, Parameters and Note
<source lang="javascript">
Note: Returns the numeric day of the week. Return values: 0 to 6, 0 representing Sunday and 6 representing Saturday.
Syntax:
dateName.getDay()
</source>