Time format / collector in Grail?

I have a domain class called a schedule. It has the following fields:

String timeStart
String timeEnd
Date date
String timeZone

I want to know what data type should be used for time. I think that Dateshould be enough, but I want him to separate it from time, since I have to do it. I just want to extract this part: MM / DD / YY ...

Is there a plugin or tag in the views that can only be used for time? For example, several combo boxes that can allow the user to select an hour, minutes, and possibly AM or PM? I can do it manually, but the plugin will be nice ... :)

The current plugin I'm looking at right now is: http://www.grails.org/plugin/calendar

+3
source share
1

, Joda Time joda time. Joda - MATCH BETTER java.date .

:

class Schedule {
    static hasMany = [appointments:Appointment]
}

class Appointment {
    DateTime start
    DateTime end
    other properties e.g. name, description...
}

DateTime.

+4

All Articles