title: need to show date in yyyy/mm/dd format in java
body: <p>I am using <code>Nebulla DateChooserCombo</code>. I have used it as <code>dateChooserFrom.getText();</code>. It is Producing the result like 7/31/2011 which is in <code>m/dd/yyyy</code> and <code>mm/dd/yyyy</code> format. I need the result in <code>yyyy/mm/dd</code> format. For that I have use the code as.</p>
  
  <pre><code>DateFormat df = new SimpleDateFormat("yyyy-MM-dd");  
  String s = df.format(dateChooserFrom.getText()); 
  </code></pre>
  
  <p>But when I run the code it says <code>Cannot format given Object as a Date</code> . so please anybody could help me on this. I am using eclipse rcp and java.</p>