title: how can i get date from datepicker(dialogbox) to toast
body: <pre><code>            final Dialog dialog = new Dialog(context);
              dialog.setContentView(R.layout.alram);
              dialog.setTitle("remember me");
  
              DatePicker datepicker = (DatePicker) dialog.findViewById(R.id.datePicker1);
              dialog.show();
              datepicker.getYear();
              datepicker.getMonth();
              datepicker.getDayOfMonth();
  
              Button dialogButton = (Button) dialog.findViewById(R.id.buttonok);
              dialogButton.setOnClickListener(new OnClickListener() {
  
                  @Override
                  public void onClick(View v) {
                      // TODO Auto-generated method stub
  
                      Toast.makeText(MainActivity.this, "", Toast.LENGTH_LONG).show();
                      dialog.dismiss();
                  }
  </code></pre>
  
  <p>what should i give in toast to display the date which i selected in dialog box(datepicker)</p>