First of all, let me point you to the
w3schools website. They have a lot of useful tutorials on web-related topics - for your case they have a good date object
reference.
Second, you can use the getDay() method along with a switch statement to do what you want. See below
Code:
var d = new Date();
switch(d.getDay()) {
case 0:
//do Sunday stuff here
break;
case 1:
//do Monday stuff here
break;
//...
//...
case 6:
//do Saturday stuff here
break;
}
Hope that helps.