Javascript Date toDate()

Description

Javascript Date toDate()

Date.prototype.toDate = function() {
  return this.toJSON().slice(0,10);
}



PreviousNext

Related