title: JPA Criteria API: how to retrieve date in "mm/dd/yyyy" format
body: <p>I want to retrieve one of my column date in "mm/dd/yyyy" format. This column is currently returning date and time both but i want only date in  "mm/dd/yyy" format.</p>
  
  <p>Below is my postgresql query that i want to convert to criteria api</p>
  
  <pre><code>select    DISTINCT c.name as Facility,
            to_char(begin_exam,'mm/dd/yyyy') as begin_exam
  from  a inner join  b on a.rad_exam_id = b.id 
                        inner join  c on c.id = b.site_id
  group by c.name,to_char(begin_exam,'mm/dd/yyyy')
  order by c.name,to_char(begin_exam,'mm/dd/yyyy')
  </code></pre>
  
  <p>I searched on the internet a lot but did't find any solution that will help me.  please help me in writing criteria api query for this.</p>