title: select specific date format in jpa criteria query
body: <p>I want to select date in particular format in multiselect of jpa criteria query
  like we use
   <pre>select to_char(tn.dbdate,'yyyy-MM-dd') from transaction tn </pre>
  in oracle.</p>
  
  <p>I am able to use</p>
  
  <pre>
  query.multiselect(cb.function("TO_CHAR",String.class,transaction.get("dbdate")) );</pre>
  
  <p>but this returns date in database format i.e.</p>
  
  <p><code>Wed Apr 2 12:20:50 2014</code></p>
  
  <p>but how to get this in specific date format </p>
  
  <p><code>'yyyy-MM-dd'</code></p>