title: How can I return a list of future dates based on a day (e.g. the dates for mondays until the years end)?
body: <p>So I have a booking system and a user can book a time slot. </p>
  
  <p><strong>The time slots are listed by day and time:</strong> </p>
  
  <pre><code>Wednesday - 10am to 2pm
  
  Wednesday - 3pm to 9pm
  
  Sunday - 3pm - 7pm
  
  Tuesday 12pm - 4pm
  </code></pre>
  
  <p>What I need to happen is return some future dates based on the chosen time slot. So for example if I was to choose the Sunday slot above, another select field would be populated with dates.</p>
  
  <p><strong>The dates would be presented in a day and month format:</strong></p>
  
  <pre><code>5th June
  
  8th May
  
  30th September
  </code></pre>
  
  <p>The dates would be Sundays only or what ever day was chosen in the time slot drop down list.</p>
  
  <p>I would also need some way to limit how many dates were returned. So maybe every Sunday up to 6 months in the future.</p>
  
  <p>I've taken a look in the API and can't seem to find anything for this.</p>
  
  <p>Would appreciate your help.</p>
  
  <p>Thanks for your time.</p>