title: Using DateTime in a For loop, incrementing date Isn't working
body: <p>I have this loop, its purpose is to loop through a range of dates and perform some logic to automate adding entries into the database. The issue is that the incrementing portion, date.AddDays(1.0) isn't working, and is always the same result, causing an infinite loop. Any insight?   </p>
  
  <pre><code>for (DateTime date = DateTime.Now; futureDate.CompareTo(date) &gt; 0; date.AddDays(1.0))
  {
      // logic here
  }
  </code></pre>