title: how to convert java.util.Date to the format accepted by oracle?
body: <p>i want to pass date as a parameter in my stored procedure which accepts date parameter. the date format my oracle db accepts e.g 10-JUL-17</p>
  
  <p>now i tried </p>
  
  <pre><code>SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yy");
  Date d = new Date();
  String newdate = df.format(d);
  System.out.println(newdate);
  </code></pre>
  
  <p>it prints 13-JUL-17 but as it is string my table won't accept this value. 
  how can i convert it to the date datatype so that oracle will accept it. </p>