how to fill Array Within the Start Date and End Date in android
<p>Suppose I want Array Of Dates i want Dates between</p>

<p>Start Date- 26/9/2012
End Date-3/10/2012</p>

<p>diffinDays=7;
What i am doing is </p>

<pre><code>    for(int i=0;i&lt;diffInDays;i++){

        DateArray[i]=StartDate.toString();

        SimpleDateFormat sdf= new SimpleDateFormat("dd/mm/yyyy");
        Calendar c= Calendar.getInstance();
    try {
            c.setTime(sdf.parse(StartDate));
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        c.add(Calendar.DATE, 1);
        // number of days to add

        StartDate= sdf.format(c.getTime());  // dt is now the new date
        }   
</code></pre>

<p>It Addes me Date but when the Date is 30/09/2012 how can i add Month? </p>
