how to get the next coming seven days in my listbox and remove the others?
<p>so far i did that but it doesnt work instead of getting me the specific date it erase all the list items please help</p>

<pre><code>private void button1_Click_1(object sender, EventArgs e)
{
    List&lt;RentalCar&gt; listBox1snew = new List&lt;RentalCar&gt;();
    for (int i = 0; i &lt; listBox1s.Count; i++)
    {
        if ((DateTime.Now.Day - listBox1s[i].WOF.Day) &lt;= 7)
        {
            listBox1.Items.Insert(0, listBox1snew[i]);

        }
    }
    listBox1.DataSource = listBox1snew;//add car to listbox
}
</code></pre>
