compare datetime values just by date
<p>i wish to compare to datetime values just by date, not by hour. How can i do so ?</p>

<p>I want to remove some values that are outside an interval selected by me :</p>

<pre><code>if (DateTime.Compare(DateTime.Parse(t.Rows[i][1].ToString().Trim()), dateTimePicker1.Value) &lt; 0 || DateTime.Compare(DateTime.Parse(t.Rows[i][1].ToString().Trim()), dateTimePicker2.Value) &gt; 0) 
/*remove comand*/
</code></pre>
