title: Groovy/Grails Date.parse
body: <p>It would seem to me that the following Groovy Script should fail with parsing exceptions:</p>
  
  <pre><code>println Date.parse("yyyy-MM-dd'T'HH:mm:ss","2014-10-06T05:58:00-0500")
  println Date.parse("yyyy-MM-dd'T'HH:mm:ss","2014-14-06T05:58:00-0500")
  println Date.parse("yyyy-MM-dd'T'HH:mm:ss","2014-10-45T05:58:00-0500")
  println Date.parse("yyyy-MM-dd'T'HH:mm:ss","2014-10-06T35:58:00-0500")
  println Date.parse("yyyy-MM-dd'T'HH:mm:ss","2014-10-06T05:95:00-0500")
  </code></pre>
  
  <p>Note that:</p>
  
  <ul>
  <li>the second date has an invalid month</li>
  <li>the third date has an invalid day</li>
  <li>the fourth date has an invalid hour</li>
  <li>the fifth date has invalid minutes</li>
  </ul>
  
  <p>I'm pretty sure that I know what it is actually doing, but it is not what I expect to happen.</p>