SOURCE

var day=new Date().getDay();

switch(day){
  case 0:
    	x="Sunday";
    	break;
  case 1:
    	x="Monday";
    	break;
  case 2:
    	x="Tuesday";
    	break;
  case 3:
    	x="Wednesday";
    	break;
  case 4:
    	x="Thursday";
    	break;
  case 5:
    	x="Friday";
    	break;
  case 6:
    	x="Saturday";
    	break;
}
    
document.write("Today it's "+x);
console 命令行工具 X clear

                    
>
console