Javascript Date month()

Description

Javascript Date month()

Date.prototype.month = function()
{
 var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];

 return months[this.getMonth()];
}



PreviousNext

Related