Category Archives: Groovy

SimpleDateFormat example

import java.text.SimpleDateFormat

SimpleDateFormat frmt = new SimpleDateFormat('yyyyMMdd kk:mm:ss.SSS');
def timeText = obj['Trade.Time']
def dt = frmt.parse(timeText)
Calendar c = Calendar.getInstance()
c.setTime dt
c.add Calendar.HOUR_OF_DAY,-5

Grails Documentation & Grails-UI Links

Grails Documentation
The Grails Framework – Reference Documentation

Grails-UI Links
Plug-in Source:
GrailsUI Plug-in Home

Tutorials (by the GrailsUI plug-in author Matthew Taylor):
Using GrailsUI dataTable tag (see information in comments regarding conditional formatting/traffic lighting)
GrailsUI Primer

Sample code:
Grails-UI DataTable using XML for a model

Related links:

Yahoo! UI Library (YUI)
Bubbling Library (YUI Extension): Index of Official Examples