title: Adding time to SimpleDateFormat in Groovy
body: <p>I am trying to add time to groovy parameter which have <em>DateTime</em> stored in <code>SimpleDateFormat</code>.</p>
  
  <pre><code>import groovy.time.TimeCategory
  import java.text.SimpleDateFormat 
  def testCase = messageExchange.modelItem.testCase;
  def startdatetime = testCase.testSuite.project.getPropertyValue("StartDateTime").toString();
  log.info startdatetime
  aaa =  new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(startdatetime)
  use(TimeCategory) 
  {
      def enddatetime = aaa + 5.minutes
      log.info enddatetime
  }
  </code></pre>
  
  <blockquote>
    <p>startdatetime : Wed Nov 08 19:57:50 IST 2017:INFO:2017-11-08T15:00:00.000Z</p>
  </blockquote>
  
  <p>Error popup displayed with message </p>
  
  <blockquote>
    <p>'Unparseable date: "2017-11-08T15:00:00.000Z"'</p>
  </blockquote>