Get day from a date : getDay « Date « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
dateVar = new Date();
alert(dateVar.getDay());
//  -->
</script>
</head>
<body>

</body>
</html>








12.6.getDay
12.6.1.Get day from a date
12.6.2.Translate the Date().getDay() to a string day name
12.6.3.Date.getDay() with switch statement