title: Java Dateformat Error
body: <p>I am using JDatechooser netbeans swing plugin for my desktop app development. By default its dateformat is mm/dd/yy but its not the format which the db required. I need to convert it to the yyyy-mm-dd format. I tried with SimpleDateformat class and it gives me the following error: <code>com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '8/29/11' for column 'registered_date' at row 1</code></p>
  
  <p>can anyone give me a good solution to do this properly</p>
  
  <p>Thanks</p>