title: Creating a loop for two dates
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1060279/iterating-through-a-range-of-dates-in-python">Iterating through a range of dates in Python</a>  </p>
  </blockquote>
  
  
  
  <p>I have two entries:</p>
  
  <pre><code>date1 = 2004.09.25
  date2 = 2004.10.08
  </code></pre>
  
  <p>I want to wrote a script in Python that recognizes the date range and print them. something like this:</p>
  
  <pre><code>for i in range(date1:date2):
      print i
  </code></pre>
  
  <p>Do I need to define the dates in a particular format for dates?
  The expected output is like:</p>
  
  <pre><code>2004.09.25
  2004.09.26
  .
  .
  .
  2004.10.08
  </code></pre>