title: value '0' should not accept in the date input field in react js
body: <p>Hi all I am doing date input validations. So that I don't want to accept number 0 only in the day and month and year field. </p>
  
  <p>My date input format is <code>dd mm yyyy</code> all three will separate input components. </p>
  
  <p>here is what I tried for stop two zeros</p>
  
  <pre><code>// validation day 
  export function dayValidation(str) {
    if(str.search(/^00/) !== -1){
      return "0"; 
    }    
    return extract(str, '^([0-2]?[0-9]|3[01]|10|20)$');
  }
  
  // validation month 
  export function monthValidation(str) {
    if(str.search(/^00/) !== -1){
      return "0"; 
    } 
    return extract(str, '^([0-1]?[0-2]|0[1-9]|[0-9])$');
  }
  
  export function yearValidation(str) {
    if(str.search(/^0/) !== -1){
      return ""; 
    } 
    return extract(str, '[0-9]+');
  
  }
  </code></pre>
  
  <p>its working fine for do not entering two 00 digits. but I want to show error if the value will be only 0. </p>
  
  <p>here is what I tried for validation:   </p>
  
  <pre><code>if (Validator.isEmpty(data.applyStartYear)) {
      errors.applyStartYear = APPLY_START_DATE;
    }
  
    if (Validator.isEmpty(data.applyEndYear)) {
      errors.applyEndYear = APPLY_END_DATE;
    }
  
    if(!dateValidation(`${data.applyStartDay}-${data.applyStartMonth}-${data.applyStartYear}`, `${data.applyEndDay}-${data.applyEndMonth}-${data.applyEndYear}`) &amp;&amp; !Validator.isEmpty(data.applyEndYear)){
      errors.applyEndYear = DATE_MISMATCH;
    }
  </code></pre>
  
  <p>so how to do that. Thanks in advance.</p>