title: ISO 8601 date format to Unix Time in Java
body: <p>I have done some Googling and Stacking, but cannot find the necessary resources for any methods that can convert ISO-8601 format to Unix time in Java.</p>
  
  <p>I am parsing NOAA's (National Oceanic Atmospheric Administration) predictions, and using XPath I am able to successfully parse that data. I would, however, like to convert the ISO-8601 i.e. <code>2013-10-31T14:00:00-07:00</code> date format to Unix time.</p>
  
  <p>Are there any Java libraries that can do this?</p>
  
  <p>What my code does: </p>
  
  <pre><code>for (int i = 0; i &lt; tempHourlyResult.getLength(); i++) {
                  writer.append(
                          hourlyResult.item(i).getNodeValue() + ","
                          + tempHourlyResult.item(i).getNodeValue()+ "," 
                          + dewPointResult.item(i).getNodeValue() + ","
                          + windSpeedResult.item(i).getNodeValue() +","
                          + relHumResult.item(i).getNodeValue() + "\n");
              }
  </code></pre>