title: set day of the week when a date is selected from a date time picker android
body: <p>Does anyone know how to set the day of the week when a date is selected from a date time picker?</p>
  
  <p>I currently have the following to set the date but I also require the day e.g <em>Mon, Tues</em>:</p>
  
  <pre><code>private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() {
  
          public void onDateSet(DatePicker view, int year, int monthOfYear,
                  int dayOfMonth) {
              mYear = year;
              mMonth = monthOfYear;
              mDay = dayOfMonth;
              // calendar.set(mYear, mMonth, mDay);
  
          }
      };
  
  private void setDateInEditText() {
  
      StringBuilder dateTime = new StringBuilder (mDay)
              .append("-").append(mMonth + 1).append("-").append(mYear)
              .append(" ").append(pad(mHour)).append(":")
              .append(pad(mMinute));
  
      datatableEditText.setText("");
      datatableEditText.setText(dateTime);
  
  }
  </code></pre>
  
  <p>I don't want to set the current day I want to set the day of the date selected.</p>
  
  <p>Many thanks in advance.</p>