title: How could I change the date format in android from dd-MM-yyyy HH:mm:ss to only dd-MM-yyyy HH:mm?
body: <p>I have tried below code: </p>
  
  <pre><code>String created_Date = "25-Nov-15 14:23:34";
  
  SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy HH:mm");
  
  System.out.println("Formatted date====&gt;"+sdf.format(created_Date));
  
  tv_date.setText(sdf.format(created_Date));
  </code></pre>
  
  <p>I am getting </p>
  
  <blockquote>
    <p>llegalArgumentException: Bad class: class java.lang.String</p>
  </blockquote>