title: Convert string into a Java Date
body: <pre><code>String stringDate = "2013-08-20T12:10:35Z"
  </code></pre>
  
  <p>How can I convert this stringDate into a Date? I have tried the following: </p>
  
  <pre><code>def dateString = stringDate.replace("T",":")
  Date date = new Date().parse("yyyy-M-d:H:m:s", dateString)
  </code></pre>
  
  <p>The result is not correctly formatted and the parse is deprecated for date.</p>