title: How to use date range type parameter as normal java.util.date in jasper
body: <p>I have created two input controllers BeginDate and EndDate as date range type. I need to convert that dates which are input as date range to util.date.These are data types I have created.</p>
  
  <pre><code>&lt;parameter name="BeginDate" class="net.sf.jasperreports.types.date.DateRange"/&gt;
  &lt;parameter name="EndDate" class="net.sf.jasperreports.types.date.DateRange"/&gt;
  
    &lt;![CDATA[SELECT * 
  FROM table 
  WHERE $X{BETWEEN,date,BeginDate,EndDate}
      AND total &gt; 0;]]&gt;
  </code></pre>
  
  <p>I need to use that dates in below.</p>
  
  <pre><code>   &lt;![CDATA[SELECT * 
      FROM table 
      WHERE 
  date &gt;= $P{BeginDate} AND
  date &lt; $P{EndDate}
          AND total &gt; 0;]]&gt;
  </code></pre>