title: android how to save date in sqlite
body: <p>I am retrieving date from datepicker and passing its value in main activity and setting this date in a textView. Well textview shows the correct date which has been picked from datepicker but when I saves this date by pulling from date textview, database entry always shows the current(today's) date. Please find my code below</p>
  
  <p><code>//Database code
  public long insertcontact(String date)
      {
          SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd"); 
          Date ddate = new Date();
  initialValues.put(KEY_DATE, dateFormat.format(ddate));
  return db.insert(DATABASE_TABLE, null, initialValues);<br>
  }</code></p>