title: How to set date limit in date picker
body: <p>In my application i have to show dates 5 years back dates from current date like example today is 4th July 2016 but in my date picker it will show as 4th July 2011 and user can not choose date after 4th July 2011 but can choose before 4th July 2011 and backwards.</p>
  
  <p>I have seen some examples like <a href="https://stackoverflow.com/questions/31049830/how-to-set-the-limit-on-date-in-date-picker-dialog">Click here</a>  </p>
  
  <pre><code> DatePickerDialog mDate = new DatePickerDialog(DatePicker.this, date, year, month, day);
              maxDate = Calendar.getInstance();
              maxDate.add(Calendar.YEAR,  -5);
              mDate.getDatePicker().setMaxDate(maxDate.getTimeInMillis());
              mDate.show();
  </code></pre>
  
  <p>I have tried this and its working perfectly from January 1900 to July 4 2011 but one thing i want that is when i click the date in calendar it shows  January 1900 all i want is when i click it it should show from July 2011 and then backward dates.</p>