title: How to use offset time in Java Simple Date Format
body: <p>When I am running the below code to convert the time string to Java date, it is failing.        </p>
  
  <pre><code>String s = "04/17/2017 06:46:53 -600";
  SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss Z");
  Date value = format.parse(s);
  
  Exception in thread "main" java.text.ParseException: Unparseable date: "04/17/2017 06:46:53 -600"
      at java.text.DateFormat.parse(Unknown Source)
  </code></pre>
  
  <p>What is the correct format string to be used to convert the date string to java date ?</p>