title: SimpleDateFormat not producing expected output
body: <p>I have used JCalender to get the date. It returned the date like this </p>
  
  <pre><code>Thu Mar 01 18:35:53 PST 2012
  </code></pre>
  
  <p>But what I need is this format.</p>
  
  <pre><code>01/03/2012 
  </code></pre>
  
  <p>I have tried  the following code:</p>
  
  <pre><code>SimpleDateFormat MydateFormat = new SimpleDateFormat("dd/MM/yyyy");
              FromDate.getDateEditor().addPropertyChangeListener(
  new PropertyChangeListener() {
      @Override
      public void propertyChange(PropertyChangeEvent e) {
          if ("date".equals(e.getPropertyName())) {
              System.out.println(e.getPropertyName()
                  + ": --&gt;" + (Date) e.getNewValue());
                  try {
                      fdate = MydateFormat.parse(e.getNewValue().toString());
                      JOptionPane.showMessageDialog(rootPane, fdate);
                  } catch (ParseException ex) {
                      Logger.getLogger(DashboardChart.class.getName()).log(Level.SEVERE, null, ex);
                  }
  
          }       
      }
  });
  </code></pre>