title: How to get date datatype from sql database to java?
body: <p>How to get the date  datattype from sql database to java???
  so far I have use this code but failed to fetch the date. </p>
  
  <pre><code>import java.sql.*;//this is my import file
       String search="select * from tblflight";//select all data from my table
       ResultSet rs=stmt.executeQuery(search);//puting result in temporary var
       while(rs.next())
  {
     Date d_time=rs.getDate("date_time");//getting result
     combo_box.addItem(d_time);//n showing error here while putting the date var here
  }
  </code></pre>