title: SimpleDateFormat doesn't work
body: <p>I'm trying to do something with a SimpleDateFormat, but after I read the Javadoc, I only got more confused. I want two methods, one for the timezone and one for the current time and date. My format should look like this:</p>
  
  <pre><code>Time Zone: GMT +01:00
  Time and Date: Wednesday 17/04/2013, 20:38:34
  </code></pre>
  
  <p>I took code from the internet once for time. That worked fine:</p>
  
  <pre><code>    private String getFormattedTime() {
          Calendar cal = Calendar.getInstance();
          SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");        
  
          return sdf.format(cal.getTime());
  
      }
  </code></pre>
  
  <p>This will output: 20:41:34</p>
  
  <p>Now for my other format, I tried something like this (I wasn't completely done yet):</p>
  
  <pre><code>private static String getFormattedDate() {
      Calendar cal = Calendar.getInstance();
      SimpleDateFormat sdf = new SimpleDateFormat("EEEEEEEEE DD/MM/yyyy, HH:mm:ss");      
  
      return sdf.format(cal);
  
  }
  
  private static String getTimeZone() {
      Calendar cal = Calendar.getInstance();
      SimpleDateFormat sdf = new SimpleDateFormat("z");       
  
      return sdf.format(cal.getTimeZone());
  
  }
  </code></pre>
  
  <p>If you'd run this code, you get an IllegalArgumentException at the first <code>return</code> line.</p>
  
  <p>It seems like the Javadocs don't give any example on how to use this.</p>