Javascript Date getFormatedDate()
getFormatedDate()
Date.prototype.getFormatedDate = function() { var timeFormatOptions = { year: "numeric", month: "numeric", day: "numeric"}; return this.toLocaleTimeString("en-us", timeFormatOptions); };