Date to String Time - Node.js Date

Node.js examples for Date:Date Format

Description

Date to String Time

Demo Code

Date.prototype.toStringTime = function() {
  return this.getHours().toString().lpad('0', 2)+
    ":"+this.getMinutes().toString().lpad('0', 2)
}

Related Tutorials