
var rightNow=new Date();
var weekday=rightNow.getDay();
var theMonth=rightNow.getMonth();
var theDate=rightNow.getDate();
var theYear=rightNow.getYear();
// set the days of the week
var someday=new Array(7)
someday[0]="Sunday";
someday[1]="Monday";
someday[2]="Tuesday";
someday[3]="Wednesday";
someday[4]="Thursday";
someday[5]="Friday";
someday[6]="Saturday";
// set the month numbers to be recognizable
theMonth+=1;
// set the year data for 4 digits
if(theYear<2000)
	theYear+=1900;

document.write(someday[weekday]+", "+theMonth+"/"+theDate+"/"+theYear);

