Javascript String toAmericanDate()

Description

Javascript String toAmericanDate()


String.prototype.toAmericanDate = function() {
    if ( "" == this )
        return ""

    var parts = this.split("T")[0].split("-");
    return parts[1] + "/" + parts[2] + '/' + parts[0];
}



PreviousNext

Related