title: How to filter limit year in datepicker?
body: <p>I want filter year in datepicker.<br>
  I.e.: filter appear 1960-2000, from >2000 disable or &lt;1960 disable.  </p>
  
  <p>Can you help me?<br>
  I need it badly. the dealine being only 5 hour.</p>
  
  <pre><code>public void selectDate(final EditText edt) {
      date = c.get(Calendar.DATE);
      month = c.get(Calendar.MONTH);
      year = c.get(Calendar.YEAR);
      datePickerDialog = new DatePickerDialog(getActivity(), AlertDialog.THEME_HOLO_LIGHT, new DatePickerDialog.OnDateSetListener() {
          @Override
          public void onDateSet(DatePicker datePicker, int i, int i1, int i2) {
              c.set(i, i1, i2);
              yearPast = i;
              SimpleDateFormat sdf = new SimpleDateFormat(myFormat);
              edt.setText(sdf.format(c.getTime()));
          }
      }, year, month, date);
      c.add(Calendar.YEAR, -18);
      datePickerDialog.getDatePicker().setMaxDate(c.getTimeInMillis());
      c.add(Calendar.YEAR, -42);
      datePickerDialog.getDatePicker().setMinDate(c.getTimeInMillis());
      Log.d("year", String.valueOf(year));
      datePickerDialog.show();
  }
  </code></pre>
  
  <p>When click 1st true, 2st false</p>