title: select date of birth dialog
body: <p>How to create alert dialog that I can select date of birth:</p>
  
  <p>I want that it's not be impossible to choose date in future. </p>
  
  <p>How could set limits in date dialog
  Here is my code</p>
  
  <pre><code>@Override
      protected Dialog onCreateDialog(int id) {
          switch (id) {
              case DATE_DIALOG_ID:
                  final Calendar calendar = Calendar.getInstance();
                  int yy = calendar.get(Calendar.YEAR);
                  int mm = calendar.get(Calendar.MONTH);
                  int dd = calendar.get(Calendar.DATE);
                  return new DatePickerDialog(this, mDatePickerListener, yy, mm, dd);
          }
          return null;
      }
  </code></pre>