title: java.text.ParseException: Unparseable date: "2015-08-19T00:00:00"
body: <p>I'm trying to parse a date from a string in Java. My string is "2015-08-19T00:00:00", and this is my code to parse it:</p>
  
  <pre><code>DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
  java.sql.Timestamp date = new java.sql.Timestamp(format.parse(dateString).getTime());
  </code></pre>
  
  <p>However, I'm getting this error message when I run the code:</p>
  
  <pre><code>java.text.ParseException: Unparseable date: "2015-08-19T00:00:00"
  </code></pre>
  
  <p>This must be really simple -- I don't know where I'm going wrong though.</p>