title: Dates in For Loop in vb.net
body: <p>In vb.net I have two data values as shown below:</p>
  
  <pre><code>Dim startp as datetime
  Dim endp as datetime
  </code></pre>
  
  <p>I have a function called <code>ProcessData(soemdate)</code> which processes dataporting.</p>
  
  <p>In VB.net is there a way I can do something like</p>
  
  <pre><code>For each day between startp and endp
   ProcessData(soemdate)
  Next 
  </code></pre>
  
  <p>Thanks</p>