Javascript Date get2nMinutes()

Description

Javascript Date get2nMinutes()

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



PreviousNext

Related