title: Convert date string to timestamp, groovy
body: <p>I have a date string as follows:</p>
  
  <pre><code>201805041235040000000
  </code></pre>
  
  <p>Which I would like to convert to timestamp with zone in Groovy.
  Tried this: </p>
  
  <pre><code>def timestamp = Date.parse("yyyyMMddHHmmss", timstamp).format("yyyy-MM-dd'T'HH:mm:ssZ");
  </code></pre>
  
  <p>But failed, got error:</p>
  
  <pre><code>No signature of method: static java.util.Date.parse() is applicable for argument types.
  </code></pre>
  
  <p>Let me know where am I going wrong.</p>