title: How to get date value from SQLite in java
body: <p>I have a simple table in my database:</p>
  
  <pre><code>CREATE TABLE [InformacjeZDziekanatu] (
    [_id] INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, 
    [DataWstawienia] DATE NOT NULL, 
    [DataModyfikacji] DATE NOT NULL, 
    [Tresc] VARCHAR2 NOT NULL);
  </code></pre>
  
  <p>In my application only what I want to do is to get value of <code>DataWstawienia</code> column.
  I am using such method:</p>
  
  <pre><code>try {
      ResultSet result = stat.executeQuery("select * from InformacjeZDziekanatu order by _id desc limit 5");
      int id;
      Date dataWst;
      Date dataMod;
      String tresc;               
  
      for(int j = 0 ; j &lt; 5 ; j++) {
              result.next();
              Object[] lista = new Object[4];
              id = result.getInt("_id");
              dataWst = result.getDate("DataWstawienia");
              dataMod = result.getDate("DataModyfikacji");
              tresc = result.getString("Tresc");
              lista[0] = id;
              lista[1] = dataWst;
              lista[2] = dataMod;
              lista[3] = tresc;
              dane[j] = lista;
  
      }
  }
  </code></pre>
  
  <p>All dates in <code>DataWstawienia</code> column are today's dates but using this method above I get 1970-01-01 date all the time.</p>
  
  <p>What did I do wrong?</p>