Javascript Date FormatYYYYMMDD()
FormatYYYYMMDD()
Date.prototype.FormatYYYYMMDD = function () { var year = this.getFullYear().Format0(4); var month = (this.getMonth() + 1).Format0(2); var day = this.getDate().Format0(2); return year + month + day; }