title: How to add date in sqlite database
body: <p>I have <code>sqlite database</code></p>
  
  <pre><code>    private static final String DB_PROCESS_CREATE = "create table "
          + DB_TABLE_PROCESS + "(" + PROCESS_ID
          + " integer primary key autoincrement, "
          + PROCESS_DATE + " date);";
  </code></pre>
  
  <p>I create it <code>db.execSQL(DB_PROCESS_CREATE);</code></p>
  
  <p>How to add date value in this database?
  I tried :</p>
  
  <pre><code>String date = new SimpleDateFormat("yyyy.MM.dd").format(Calendar
  .getInstance().getTime());
  ContentValues cv = new ContentValues();
  cv.put(db.PROCESS_DATE,Date.valueOf(date));
  db.mDB.insert(db.DB_TABLE_PROCESS, null, cv));
  </code></pre>
  
  <p>But then I get <code>error</code> :</p>
  
  <pre><code>"The method put(String, String) in the type ContentValues is not applicable for the arguments (String, Date)".
  </code></pre>