Javascript Date getFistDay()
getFistDay()
Date.prototype.getFistDay = function () { var here = new Date(this.getFullYear(), this.getMonth(), 1); return here.getDay(); };