function checkDate(inspectionDate) {
  if (regex.test(inspectionDate))
    inspectionDate = inspectionDate.replace(regex, '/')
  
  return getTime(inspectionDate) >= getTime(createdDate)
}
/**
 * Compare the inspection date with the created date
 * @param {string} inspectionDate 
 */
Compare the inspection date with the created date
@param {string} inspectionDate
Compare the inspection date with the created date @param { string } inspectionDate
function checkDate(inspectionDate) {
  if (regex.test(inspectionDate))
    inspectionDate = inspectionDate.replace(regex, '/')
  return getTime(inspectionDate) >= getTime(createdDate)
}
function checkDate ( inspectionDate ) { if ( regex . test ( inspectionDate ) ) inspectionDate = inspectionDate . replace ( regex , '/' ) return getTime ( inspectionDate ) >= getTime ( createdDate ) }
Compare the inspection date with the created date
 @param {string} inspectionDate
Compare the inspection date with the created date @param { string } inspectionDate