JavaScript Reference/Javascript Methods/getDay
"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>