title: Create array of months between two dates
body: <p>I have the following snippet that I use to get the individual dates between two dates:</p>
  
  <pre><code>DateTime[] output = Enumerable.Range(0, 1 + endDate.Subtract(startDate).Days)
      .Select(offset =&gt; startDate.AddDays(offset))
      .ToArray(); 
  </code></pre>
  
  <p>However, the following section</p>
  
  <pre><code>endDate.Subtract(startDate).Days
  </code></pre>
  
  <p>does not have a .Months to return the months in the date range.  </p>
  
  <p>For example, if I provide 1/1/2010 and 6/1/2010 I would expect to return 1/1/2010, 2/1/2010, 3/1/2010, 4/1/2010, 5/1/2010 and 6/1/2010.</p>
  
  <p>Any ideas?</p>