Javascript Date timeToJSON()

Description

Javascript Date timeToJSON()

Date.prototype.timeToJSON = function() {
 return this.toLocaleTimeString().substring(0,5);
};



PreviousNext

Related