title: How to convert Japanese date into English date format?
body: <p>I set Japanese date using Locale (e.g. 21 11月 2016) in my android app. But, I want to send that date into "dd-MM-yyyy" (e.g. 21-11-2016) format to my APIs. </p>
  
  <p>When I try to do this I get below exception :</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: Bad class: class java.lang.String</p>
  </blockquote>
  
  <p>Below is my code :</p>
  
  <pre><code>public String convertDate(String date) {
      System.out.println("......ORIGINAL DATE....... " + date); // ......ORIGINAL DATE....... 21 11月 2016
      String myFormat = "dd-MM-yyyy"; //In which you need put here
      SimpleDateFormat sdf = new SimpleDateFormat(myFormat, new Locale(getMyLocale())); //Japanese locale is set but tried english too
      System.out.println("......CONVERTED DATE....... " + sdf.format(date)); //should be 21-11-2016 but getting above error
      return sdf.format(new Date(date));
  }
  </code></pre>
  
  <p>Moreover, for US/English Locale it works fine but for Japanese I am getting this error.</p>