title: Set React Native DatePicker max date 18 years before actual date
body: <p>I'd like to set my calendar maxDate 18 years before today and also set minDate 99 years ago from today. How can i achieve that? I have already set maxDate to today      `</p>
  
  <pre><code>constructor(props) {
      super(props);
      //set value in state for initial date
      this.maxDate = new Date();
  
      this.state = { date: new Date() };   
  
    }
  
    render() {
  
  return (
    &lt;View &gt;
      &lt;DatePicker
        style={styles.placeHolder}
        date={this.state.date} //initial date from state
        mode="date" //The enum of date, datetime and time
        placeholder="select date"
        format="DD-MM-YYYY"
        minDate="01-01-1930"
        maxDate={this.maxDate}
        showIcon={false}
        confirmBtnText="Confirm" 
        cancelBtnText="Cancel"
        onDateChange={date =&gt; {
          this.setState({ date: date });
        }}
      /&gt;
    &lt;/View&gt;
  );
  </code></pre>
  
  <p>}`</p>