Get Two Digit Minute from Date - Node.js Date

Node.js examples for Date:Minute

Description

Get Two Digit Minute from Date

Demo Code


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

Related Tutorials