Javascript Date weekday()
weekday()
Date.prototype.weekday = function() { var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; return days[this.getDay()]; }