title: How to convert Japanese Era date-String to Western date in Android?
body: <p>In Android i have to parse a <code>Date string("平成30年10月 24日")</code> having <code>Japanese Era</code> to western date for comparison.Can anyone help in how to do this?</p>
  
  <p>I have tried this to run in <strong>Android Studio</strong> and it is working fine:</p>
  
  <pre><code>  DateFormat format = new SimpleDateFormat("GGGGyy年MM月 dd日", new Locale("ja", "JP", "JP"));
    System.out.println( format.parse("平成30年10月 24日"));
    //output:Wed Oct 24 00:00:00 JST 2018
  </code></pre>
  
  <p>But when i tried in the mobile device i am getting <strong><code>Unparseable date Exception</code></strong>.</p>
  
  <p><strong>Minimum api level for projects in Android Studio is 19.</strong></p>
  
  <hr>
  
  <p>This is not the duplicate question with:
  <a href="https://stackoverflow.com/questions/27606815/japanese-date-validation-comparison">Japanese Date Validation - Comparison</a></p>
  
  <p>Here I want to <strong>parse</strong> the <strong>Japanese String Date</strong>.</p>