title: Java Date ISO8601
body: <p>I have the the following class used with JPA and JAX-RS:</p>
  
  <pre><code>import java.util.Date;
  
  public class UserModel implements Serializable{
  
      private Date created;
  
      public Date getCreated() {
          return created;
      }
  
      public void setCreated(Date created) {
          this.created = created;
      }
  }
  </code></pre>
  
  <p>When I access this class via Response resource I get the "created" in ISO8601 format:</p>
  
  <p>2013-08-21T22:06:36+02:00</p>
  
  <p>However when I access it in Java code (System.out.println) I get it in the following format:</p>
  
  <p>Wed Aug 21 22:06:36 CEST 2013</p>
  
  <p>Is there any way to get it always in ISO8601 format?
  Apparently for java automatically transforms Date format to the latter one.</p>