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