title: Android: Get Date from DatePickerDialog.Builder
body: <p>How do I get the date from DatePickerDialog.Builder?</p>
  
  <pre><code>public void methodOne{
      final DatePickerDialog.Builder alert = new DatePickerDialog.Builder(this);
                  alert.setTitle("Set Recurring Event");
                  alert.setMessage("Pick the maximum date for the event: ");
  
                  alert.setPositiveButton("Set", new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialog, int id) {
                          //Get date and start setting appointments
  
                          dialog.dismiss();
                      }
                  });
                  alert.show();
  ...
  }
  </code></pre>
  
  <p>I'm aware that there is the documentation, and that DatePickerDialog allows for  getDatePicker(), which accordingly allows access to the "DatePicker contained in this dialog." But this does not extend to DatePickerDialog.Builder.</p>