title: How to convert datetime format in sql to datetime in java[eclipse]
body: <p>I am trying to retrieve values from a database. </p>
  
  <p>In the database I have a column called <code>trip_time</code> which is in date time format "2014-10-13 08:30:00". </p>
  
  <p>I am not able to set and get the values for <code>trip_time</code> in eclipse.</p>
  
  <p>What is the similar format in java which matches with database?</p>
  
  <p>In the database it is in datetime format 2014-10-13 08:30:00.
  Now currently in eclipse i am using String format for the column trip_time.
  How do i convert it to datetime format as in sql database?</p>