Display the current date in the first position for consecutive 3 months like (current, previous, next ) from a list
<p>I want to display the current date as the first position in a <code>TextView</code>   form consecutive 3 months in a list as (current,previous, next). How can I do this? </p>

<pre><code>    private void CalculateDates() {

    //to calculate the date I've used this function
      DateRange = new ArrayList&lt;String&gt;();
      boolean loopVal = true;
      SimpleDateFormat formatter = new SimpleDateFormat(" E ddMMMyyyy");
      Calendar calendar = Calendar.getInstance();
      calendar.add(Calendar.MONTH, -1);

    //textView is the TextView view that should display it
        String StartDate = formatter.format(calendar.getTime());
        calendar.add(Calendar.MONTH, 2);
        String EndDate = formatter.format(calendar.getTime());
        DateRange.add(StartDate);
        Date date = null;
        try {
                while (loopVal) {
                    date = formatter.parse(StartDate);

                    Calendar cal = Calendar.getInstance();

                    cal.setTime(date);
                }
        }catch(Exception e){

        }   
   }
</code></pre>