title: How to get exact start date and end date of every quarter of a given year in Ruby
body: <p>I need to get the exact start and end dates (month, day and year) of a given year.</p>
  
  <p>E.g., 2008
  Jan. 1, 2008
  Mar, 30, 2008</p>
  
  <p>Any thoughts on how to do this?</p>
  
  <pre><code>array = [2007, 2008, 2009, 2010]
  
  array.each do |a|
  
     #code to get array of date for a (year)   
  end
  </code></pre>