title: JDBC Bad format for DATE
body: <p>I am trying to read several dates from my database but under certain circumstances I get a ' java.sql.SQLException Bad format for DATE'. Here is my code :</p>
  
  <pre><code>Date entryDateD = res.getDate("entryDate");
  </code></pre>
  
  <p>In debug mode I see that the content of entryDateD '1996-9-15' as is in my database..
  Although I would have to mention that I read other dates too from my database which I notice are of the format 'xxxx-0y-zz'. What I want to say is that in case of a month being less than 10 there is a zero added in front of it which in this case is not added. I suspect that this might have something to do with it. 
  (this zero does not appear in the database itself though not only in this date but in any date)
  thanx in advance :)</p>