Generic DateTime List Comparison in C#
<p>I have a Generic DateTime List</p>

<pre><code>List&lt;DateTime&gt; **PreviousDates** = //Some List of Dates
</code></pre>

<p>Now i want to Get all the Dates in the <strong>PreviousDates</strong> List whose Month and Year equals the GivenDate's Month &amp; Year. no matter what the Day &amp; Time are...</p>

<p>I Tried using List.Contains() method, but it checks all Parts of the Date, i want to check only Month&amp;Year..</p>

<p>Help Me!</p>

<p>Thanks
Pradeep</p>
