title: How can I Convert Calendar.toString() into date using SimpleDateFormat.parse()?
body: <p>I'm developing an Android app that uses a database, every time that the user insert a new register the current data and time is save in the db using</p>
  
  <pre><code>Calendar cal = Calendar.getInstance();
  </code></pre>
  
  <p>So, When I retrieve the data from the db, got a String like this:</p>
  
  <blockquote>
    <p>java.util.GregorianCalendar[time=1496007575129,areFieldsSet=true,lenient=true,zone=America/Mexico_City,firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2017,MONTH=4,WEEK_OF_YEAR=22,WEEK_OF_MONTH=5,DAY_OF_MONTH=28,DAY_OF_YEAR=148,DAY_OF_WEEK=1,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=4,HOUR_OF_DAY=16,MINUTE=39,SECOND=35,MILLISECOND=129,ZONE_OFFSET=-21600000,DST_OFFSET=3600000]</p>
  </blockquote>
  
  <p>The problem comes when I try convert that String using SimpleDateFormat.parse to display it in a RecyclerView, I get always the same date: 09/04/2017.</p>
  
  <p>This is the code in my RecViewAdapter.java:</p>
  
  <pre><code>@Override
  public void onBindViewHolder(ViewHolder holder,int position){
      items.moveToPosition(position);
  
      String s,d,p,f;
  
  
      s = items.getString(ConsultaTomas.SISTOLICA);
      holder.systolica.setText(s);
  
      d = items.getString(ConsultaTomas.DIASTOLICA);
      holder.diastolica.setText(d);
  
      p = items.getString(ConsultaTomas.PULSO);
      holder.pulso.setText(p);
  
      f = items.getString(ConsultaTomas.FECHA);
      SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
  
      try {
          holder.fecha.setText(sdf.format(sdf.parse(f)));
  
      }catch (ParseException e){
          Log.d("PARSINGFECHA","Error al parcear fecha");
      }
  
  
  }
  </code></pre>
  
  <p>The other data is showed correctly in the RecView and the Calendar String are all diferent, so there is not the same date/hour in these strings. So, the question is:</p>
  
  <p>How can I Convert <code>Calendar.toString()</code> into date using <code>SimpleDateFormat.parse()</code>?</p>
  
  <p>This is the result running the app in a real device:
  <img src="https://l2juta.bn1304.livefilestore.com/y4m3FWIjnEMqB08HgxAS8rxy5cBmOd5_MdUunIz42p9GRCTF1mjcgn04wcYQP4jBFNLpF_Xtm77ntNHjJ27r9Ike_47Wl5615lH94I31Rl_BJbIdXlBck7VlF99IoH-D4q6MqoJyWBW-yuJSmbHKyAewkFtaPUP3t6BVdLv7DEDwGUQec-S69GX1z3DOutg0iBKPNzfmEtMpdjT4q7sId_Q5UxQnCC8_urQwhOrmHzdUrs/Screenshot_20170604-221751.png?psid=1" alt="two muppets" title="SimpleDateFormat.parse"></p>