title: Date formatting is lost after putting it to CSV file
body: <p>I have some date, which I need to put into CSV file. I formatted the date to String using simple date format. By using debugger I found out that it works, date is really formatted correctly. </p>
  
  <p>However after putting it into CSV file I get format dd-MM-yyyy HH:ss and I wanted yyyy-MM-dd HH:ss.</p>
  
  <p>Here is the code: </p>
  
  <pre><code>    if (x.Contact_Email_IsSubscribed.equals("False")) {
                      //boolean merged = false;
                      Date latestUnsubscriptionDate=new Date(0);
                      // MERGE UNSUBSCRIBED DATE WITH CONTACT
                      for (Contact y : unsubscribedContacts) {
                          if (y.EmailAddress.equals(x.C_EmailAddress)) {
                              //find latest unsubscription date
                              Date unsubscriptionDate=new SimpleDateFormat("yyyy-MM-dd 
  HH:mm").parse(y.ActivityDate);
                              //System.out.println(unsubscriptionDate);
                              if 
  (unsubscriptionDate.compareTo(latestUnsubscriptionDate)&gt;0){
                                  latestUnsubscriptionDate=unsubscriptionDate;
                                  //System.out.println();
                              }
                          }
                      }
                      values.append(x.toString() + ";" + new 
   SimpleDateFormat("yyyy-MM-dd HH:mm").format(latestUnsubscriptionDate));
                      values.append("\n");
                  } else {
                      values.append(x.toString() + ";null" + "\n");
                  }
  </code></pre>
  
  <p>And to the CSV file it is simply written like this: </p>
  
  <pre><code>    writer = new FileWriter(sFileName);
      writer.append(values.toString());
  </code></pre>
  
  <p>It is driving me crazy. </p>