Javascript Date weekday()

Description

Javascript Date weekday()


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

 return days[this.getDay()];
}



PreviousNext

Related