want to get a range between start date to end date please guide me
<ul>
<li><p>`code for Asynctask it use to get the data</p>

<pre><code>ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();
     protected Void doInBackground(Void... params) {
            while(true)
            for(String s : list){
                String start_date=startDateDisplay.toString(); 
                SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy"); 
                try {
                    Date d = (Date)formatter.parse(start_date);
                } 
                       catch (ParseException e)
                                {
                    e.printStackTrace();
                }

            }
</code></pre></li>
<li><p>onPreExecute() method used here</p>

<pre><code>Cursor c = null;
        c = mDb.rawQuery("select * from reminder" , null);

        if (c.getCount() != 0)
            {
                if (c.moveToFirst())
                {
                    do
                    {
                        list.add(c.getString(c.getColumnIndex("toDate")));
                        list.add(c.getString(c.getColumnIndex("fromDate")));
                    } while (c.moveToNext());
                }
                mDb.close();
            }
            c.close();

        super.onPreExecute();
    }

}
</code></pre></li>
</ul>
