title: Date formatting part of text in Jasper / ireports
body: <p>how do I format a date field (database field) displayed part of a text in Jasper / iReports (4.5.1)</p>
  
  <p>Displayed via a text field in the report... (using Groovy please)</p>
  
  <p>"Sub total for this date: " + $F(DEPOSIT_DATE)</p>
  
  <p>I have tried <code>(new SimpleDateFormat("MM/dd/yyyy")).parse($F{DEPOSIT_DATE})</code>and I am getting error message:</p>
  
  <pre><code>net.sf.jasperreports.engine.fill.JRExpressionEvalException: 
  Error evaluating expression : Source text : (new SimpleDateFormat("MM/dd/yyyy")).parse($F{BANK_DATE}) 
  </code></pre>
  
  <p>What I want to display in my report is as follows...</p>
  
  <p>Sub total for this date: MM/DD/YYYY - format...</p>