Having trobule with displaying the calendars correct date
<p>So my widget pulls up correctly but it wont display the correct selection once the user has made a choice. Here is my code.</p>

<pre><code>SimpleDateFormat dayFormatter = new SimpleDateFormat("EEEE, MMMM FF, yyyy");
Calendar cal = Calendar.getInstance();
</code></pre>

<p>This is run at the beginning of my code and when the widget get pulled up it displays the correct date. It might have something to do with why I have my original problem but I am at a lost and don't know how to fix this. </p>

<pre><code>DatePickerDialog.OnDateSetListener d=new DatePickerDialog.OnDateSetListener() {
    public void onDateSet(DatePicker view, int year, int monthOfYear,
            int dayOfMonth) {
        cal.set(Calendar.YEAR, year);
        cal.set(Calendar.MONTH, monthOfYear);
        cal.set(Calendar.DAY_OF_MONTH, dayOfMonth);

        int w = cal.get(Calendar.DAY_OF_WEEK);
        Date z = cal.getTime();
        description.setText(gDate.date(w, year, monthOfYear + 1, dayOfMonth) + 
                "\n" + dayFormatter.format(z));
</code></pre>

<p>And here is the output.</p>

<p>Monday, July 14, 2011 </p>

<p>Monday, July 02, 2011</p>

<pre><code>gDate.date(w, year, monthOfYear + 1, dayOfMonth)
</code></pre>

<p>This code above is a class I created to do this with a string before I learned about SimpleDateFormat. This is the string that is on top and displays the right date. Also I don't understand why the second date starts where it is. </p>
