title: How to compare the date coming from html with oracle database date in jsp
body: <p>I have date of birth filed in my html page.
  Based on this  i need to display all employees born on this date.
  Ex:</p>
  
  <pre><code>&lt;input type="text" value="dob"/&gt; &lt; input type="submit" value="submit"&gt;
  </code></pre>
  
  <p>Now  I am parsing the date in my jsp as follows.</p>
  
  <pre><code>java.util.Date doj = new SimpleDateFormat("dd/mm  /yyyy").parse(request.getParameter("dob")); 
  
  out.println(doj);//printing Mon Jul 14 00:08:00 IST 2013
  
  java.sql.Date dt=new java.sql.Date(doj.getTime());
  
  out.println(dt);
  //ex:this is giving 2013-07-21.Here I want 21-JUL-2013(as in oracle date format).  
  </code></pre>
  
  <p>I need comparison in date format only.</p>