Javascript Date getFullMonth()

Description

Javascript Date getFullMonth()

Date.prototype.getFullMonth = function() {
  const month = this.getMonth()+1
  return month < 10 ? '0'+month : month
}



PreviousNext

Related