title: How to convert a UTC date format String to Date format in java?
body: <p>I have a requirement where the date is in UTC format like: <strong>Thu Jan 1 19:30:00 UTC+0530 1970</strong>. I want to convert in to normal date format <strong>dd-MM-yyyy HH:mm:ss</strong>.Below is the code that i tried.</p>
  
  <pre><code>DateFormat formatter = new SimpleDateFormat("E,MMM dd,yyyy h:mmaa");   
  String today = formatter.format("Thu Jan 1 19:30:00 UTC+0530 1970");
  SimpleDateFormat f = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
  Date d = f.parse(masterDetailsJsonObject.get("cols1").toString());
  </code></pre>
  
  <p>But it throws an exception saying unparseable date. Please guide. Thanks in advance.</p>