Javascript Date getFormatedDate()

Description

Javascript Date getFormatedDate()

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



PreviousNext

Related