try{
String sql="Insert into yourtable( col_date ) values (?)";
PreparedStatement pstmt=connection.prepareStatement(sql);
pstmt.setDate(1,new java.sql.Date(System.currentTimeMillis()));
}catch(SQLException e)
{
  System.out.println("Sorry! java 我比你还白痴")
}