title: Converting Calendar date to string?
body: <p>I have to compare two dates where first date is in Calendar format and other in string(DD-MMM-yyyy) format. So I want to convert one of the Calendar dates into String and use compareTo method.</p>
  
  <p>I have tried using :  </p>
  
  <pre><code>SimpleDateFormat formatter=new SimpleDateFormat("DD-MMM-yyyy");  
  String currentDate=formatter.format(view.getSelectedDay());    
  </code></pre>