title: Groovy way to find dates in range by the day of the week
body: <p>What would be the Groovy way to accomplish Joda Time example below:</p>
  
  <pre><code>LocalDate startDate = new LocalDate(2016, 11, 8);
  LocalDate endDate = new LocalDate(2017, 5, 1);
  
  LocalDate thisMonday = startDate.withDayOfWeek(DateTimeConstants.MONDAY);
  
  if (startDate.isAfter(thisMonday)) {
      startDate = thisMonday.plusWeeks(1); // start on next monday
  } else {
      startDate = thisMonday; // start on this monday
  }
  
  while (startDate.isBefore(endDate)) {
      System.out.println(startDate);
      startDate = startDate.plusWeeks(1);
  }
  </code></pre>
  
  <p>And what about by more than 1 day of the week: MONDAY and TUESDAY, for example</p>