Javascript String isHourFormat()

Description

Javascript String isHourFormat()

String.prototype.isHourFormat = function() {
  return this.match(/^\d{1,2}\:\d{1,2}$/) == null ? false : true;
}



PreviousNext

Related