title: java inserting date into database
body: <p>can someone please tell me the elegant way of inserting a java date instance into database?</p>
  
  <p>presently, i am using IBATIS with Spring MVC .
   i have defined a java.util.date property in the command bean and property editor in the controller for Date conversion, however i am unable to insert java.util.date property in DB .</p>
  
  <p>should i convert this into java.sql.date instance inorder to store in DB?</p>
  
  <p>if i have to convert, then where to write the code of conversion(DAO,...)?</p>
  
  <p>i am new to J2EE, so pretty confused with handling date objects.</p>
  
  <p>any help?</p>
  
  <p>regards</p>