title: JAVA SimpleDateFormat on ArrayList changes Date
body: <p>I'm populating a 'ListView' with an 'ArrayList' using an Adapter.
  The 'ArrayList' contains objects with date and time.
  When i send the data as it is to the ListView, there is no problem, and the list shows the relevant objects as desired :</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
  
    TimePeriod freeSlot = (TimePeriod)getItem(position);
  
    if (convertView == null) {
        convertView = LayoutInflater.from(getContext()).inflate(R.layout.item, parent, false);
      }
  
      TextView start = (TextView) convertView.findViewById(R.id.start);
      TextView end = (TextView) convertView.findViewById(R.id.end);
  
      startTime = freeSlot.getStart().toString()      
      endTime = freeSlot.getEnd().toString();
      start.setText(startTime);
      end.setText(endTime);
  
      return convertView;
  }
  </code></pre>
  
  <blockquote>
    <p>2017-07-05T10:30:00.000Z 2017-07-05T11:30:00.000Z</p>
  </blockquote>
  
  <p>But when i use SimpleDateFormat to change the output as i want, it somehow sets the dates of all objects to the same one (01/01) :</p>
  
  <pre><code>startTime = freeSlot.getStart().toString();
  endTime = freeSlot.getEnd().toString();
  
  try {
              SimpleDateFormat formatter = new SimpleDateFormat("YYYY-MM-dd'T'hh:mm:ss.SSS'Z'");
              Date newDate = formatter.parse(startTime);
              Date newDate2 = formatter.parse(endTime);
  
              SimpleDateFormat format = new SimpleDateFormat("dd/MM hh:mm");
              startTime = format.format(newDate);
              SimpleDateFormat format1 = new SimpleDateFormat("hh:mm");
              endTime = format1.format(newDate2);
  
          } catch (ParseException pe) {
              pe.printStackTrace();
          }
  
          start.setText(startTime);
          end.setText(endTime);
  </code></pre>
  
  <blockquote>
    <p>for start - 01/01 10:30, for end - 11:30</p>
  </blockquote>
  
  <p>As iv'e mentioned earlier, all objects get this date even though dates &amp; hours are different.</p>
  
  <p>Any ideas? What am i doing wrong?
  Thanks a lot!</p>