How to convert the string "Thu Jul 18 13:20:12 GMT+05:30 2013" in date in android? Using DateFormatter and SimpleDateFormatter throw an exception saying cannot parse the date format while using it to convert into date.
['https://Stackoverflow.com/questions/17724172', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1954375/']
```
try {
    String dateString = "Thu Jul 18 13:20:12 GMT+05:30 2013";
    SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzzz yyyy");
    Date date = sdf.parse(dateString);
} catch (ParseException e) {
    e.printStackTrace();
}

```
This is how you can do:

```
try {
    String dateString = "Thu Jul 18 13:20:12 GMT+05:30 2013";

    Date date = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy").parse(dateString );
    }
    catch (ParseException e) 
    {
    e.printStackTrace();
    }

```