title: how to convert String date in to 29-nov-2011 format in android
body: <p>Hello every one I have one question regarding date format. I am making an android app which takes date from the database and display on the screen but I want when user view that date it should be in 29-nov-2011 format. I tried many codes but failed.. Please help me.   </p>
  
  <p>My stored date format is dd/mm/yyyy.  </p>
  
  <p>Here is my code.<br>
  <b>dt</b> means date come from the database and I passed it into function to change my date format.</p>
  
  <pre><code>public void change_Date(String dt) {
      try{
          Toast.makeText(getApplicationContext(), "In change()", 
                                                       Toast.LENGTH_LONG).show();
          SimpleDateFormat sdf = new SimpleDateFormat("dd/MMM/yyyy");
          Date d = sdf.parse(dt);
          String str = sdf.format(d);
          Toast.makeText(getApplicationContext(), "Date="+str, 
                                                       Toast.LENGTH_LONG).show();
      } catch(Exception e) {
      e.printStackTrace();
      }
  }
  </code></pre>