title: convert String to Date in android
body: <p>anyone know how to convert the following string to Date?</p>
  
  <p>"Fri Jul 30 16:19:36 GMT+02.00 2021"</p>
  
  <p>i tried: </p>
  
  <pre><code> SimpleDateFormat formatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzzz yyyy");
  try {String temp = value2[i].trim();
       expiry = formatter.parse(temp);
  
      } catch (Exception e) {
      e.printStackTrace();
      }
  </code></pre>
  
  <p>but,it doesn't work.</p>