title: Scala - Get all months and days for a given year
body: <p>I need to create a function that return the sequence of all days for a given year as string date triples (year, month, day).</p>
  
  <pre><code>def allDaysForYear(year: String) = {
   ...// get every month and day for that $year
  
    }
  </code></pre>
  
  <p>Then I will use in this way:</p>
  
  <pre><code>for ((year, month, day) &lt;- allDaysForYear("2017"))
          yield doSomethingElse(p(year), p(month), p(day))
  </code></pre>
  
  <p>In my attempts I used Calendar Object and Iterator[Calendar], but did not managed to have a clean and small code.</p>
  
  <p>This does not seem complicated to archive, perhaps someone has a better idea on how to handle dates. </p>
  
  <p>What is the most efficient way to perform this in Scala?</p>
  
  <p>thanks</p>