title: Convert datetime in to date
body: <p>How do I convert a datetime field in Grails to just date, with out capturing the time? I need to do this for comparison with system date.  </p>
  
  <pre><code>class Trip 
  {
      String name
      String city
      Date startDate
      Date endDate
      String purpose
      String notes
  
      static constraints = {
          name(maxLength: 50, blank: false)
          startDate(validator: {return (it &gt;= new Date())}) // This won't work as it compares the time as well 
          city(maxLength: 30, blank: false)
      }
  }
  </code></pre>