title: Python list of first day of month for given period
body: <p>I am trying find an efficient way of creating a list of dates only including the first day of the month for a given period. Something like this but better:</p>
  
  <pre><code>import datetime
  dates = [
    datetime.date (2014, 4, 1),
    datetime.date (2014, 5, 1),
    datetime.date (2014, 6, 1),
    datetime.date (2014, 7, 1),
    datetime.date (2014, 8, 1),
    datetime.date (2014, 9, 1),
    datetime.date (2014, 10, 1),
    datetime.date (2014, 11, 1),
    datetime.date (2014, 12, 1),
    datetime.date (2015, 1, 1),
    datetime.date (2015, 2, 1)]
  </code></pre>
  
  <p>Alternatively, some direction on what to Google for this. Cheers!</p>