Javascript Date isoDate()
isoDate()
Date.prototype.isoDate = function() { return this.getFullYear() + "-" + (parseInt(this.getMonth())+1) + "-" + this.getDate(); }