Javascript Date getAMPMHour()

Description

Javascript Date getAMPMHour()

Date.prototype.getAMPMHour = function() {
  hour = Date.padded2(this.getHours());
  return (hour == null) ? 00 : (hour > 24 ? hour - 24 : hour)
}



PreviousNext

Related