Javascript Date get2nSeconds()

Description

Javascript Date get2nSeconds()

Date.prototype.get2nSeconds = function () {
    var n = this.getSeconds();
    return (n < 10) ? '0' + n : n.toString();
}



PreviousNext

Related