Convertir datetime dans à ce jour

Comment puis-je convertir un champ datetime dans Graal juste la date, avec la capture de temps en temps? J'ai besoin pour ce faire de comparaison avec la date système.

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 >= new Date())}) //This won't work as it compares the time as well 
        city(maxLength: 30, blank: false)
    }
}

OriginalL'auteur Omnipotent | 2008-12-08