title: Is this a Valid DateFormat in Java
body: <p>I want to parse this date "Mon Mar 09 2015 00:00:00 GMT+0530 (India Standard Time)" in java SimpleDateFormat class as "MM-dd-yyyy", is this a valid date format? If yes, how can I do that?</p>
  
  <pre><code>String inputDate = "Wed Sep 17 2014 00:00:00 GMT+0530 (India Standard Time)";
  //SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd yyyy HH:mm:ss"); -- Not working
  SimpleDateFormat sdf = new SimpleDateFormat("E MMM dd yyyy HH:mm:ss z"); // Not Working
  Date date = sdf.parse(inputDate);
  sdf = new SimpleDateFormat("yyyy-MM-dd");
  System.out.println(sdf.format(date));
  </code></pre>