title: How to compare date in Groovy?
body: <p>I need to compare two data in  format <code>13.07.2017 14:03:51,469000000</code> using groovy</p>
  
  <p>I try to do this, but get error message. </p>
  
  <p>I get next data:</p>
  
  <p>time1 = <code>13.07.2017 14:03:51,469000000</code></p>
  
  <p>time2 = <code>13.07.2017 14:03:52,069000000</code></p>
  
  <p>Then I try to compare it:</p>
  
  <pre><code>time1  = time1['TIME'] as String
  time2  = time2['TIME'] as String
  assert time1 &gt; time2, 'Error'
  </code></pre>
  
  <p>Which type of value should I choose for date for compare it?<br>
  Whats wrong in my comparing?</p>