title: how to allow date in "dd/mm/yyyy" inside an input text field in reactjs?
body: <p>Working on a sample reactjs form.
  It has two date fields, <code>startdate</code> and <code>enddate</code> as shown below</p>
  
  <pre><code>&lt;input type="text" name="startdate" value={this.state.startDate}/&gt;
  &lt;input type="text" name="enddate" value={this.state.endDate}/&gt;
  </code></pre>
  
  <p>these two fields should allow date, only in "dd/mm/yyyy" format and should not allow any other characters expect valid date, month, year and "/".</p>
  
  <p>How to allow only the valid characters as mentioned above using javascript?</p>