Javascript Date toStringTime()

Description

Javascript Date toStringTime()


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



PreviousNext

Related