code: @Override
      public void onNegativeButtonClicked(int resultCode, Date date) {
          String text = "";
          if (resultCode == REQUEST_DATE_PICKER) {
              text = "Date ";
          } else if (resultCode == REQUEST_TIME_PICKER) {
              text = "Time ";
          }
  
          DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT);
          Toast.makeText(this, text + "Cancelled " + dateFormat.format(date), Toast.LENGTH_SHORT).show();
      }
docs: IDateDialogListener