Iterate through hours in a day
<p>having a DateTime variable, for example: </p>

<pre><code>DateTime testDate = new DateTime(2011,12,15,00,00,00);
</code></pre>

<p>how can I implement a foreach loop for every hour of this day? </p>

<p>Something like: </p>

<pre><code>foreach (int myHour in testDate.Date)
{

}
</code></pre>

<p>but in this way does not compile. </p>
