Javascript Date timeToString()

Description

Javascript Date timeToString()

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



PreviousNext

Related