Javascript Date get2nHours()

Description

Javascript Date get2nHours()

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



PreviousNext

Related