title: java.text.parseexception unparseable date in android
body: <pre><code>String dt=mDateButton.getText().toString();
  String tm =mTimeButton.getText().toString();
    try { 
      String format ="dd-MM-yyyy hh:mm a";
  
      DateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.ENGLISH);
  
      String v_date_str = dt + " " + tm;
      //  String setDate =sdf.format(dt + " " + tm);
      Date v_date = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.ENGLISH).parse(v_date_str );
  
      DateFormat formatter = null;
      formatter = new SimpleDateFormat("dd-MMM-yyyy");
  
      Log.d("sset: ", ""+formatter.format(v_date));
    } catch (ParseException e) {
      e.printStackTrace();
    }
  </code></pre>
  
  <p>Note: where dt = 2013-03-02  and tm = 21:54 . but i got an error on 9th line. i dont know what's the reason. please help me to get out of this problem. thank you in advance.</p>