title: How to get start and end date for a specific month and year
body: <p>I am creating a report in <em>iReport</em></p>
  
  <p>The user enters a date eg. 2014-09-14</p>
  
  <p>The report then needs to print 2014-09-01 and 2014-09-30</p>
  
  <p>("First day of selected month and year" and "Last day of selected month and year")</p>
  
  <p>I've been trying to get it to work with</p>
  
  <pre><code>new java.util.Date(new java.util.GregorianCalendar($P{ds_endDate}.getYear(),$P{ds_endDate}.getMonth(),1).getTimeInMillis())
  // end result must be java.util.Date 
  </code></pre>
  
  <p>But have had no luck</p>