Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

formatting dates in Grails

I have a domain class in Grails with a field journeyDate. journeyDate is defined like this:-

Date journeyDate

then in my list.gsp I display the date like this:-

${fieldValue(bean:journeyInstance, field:'journeyDate')}

And it is displayed in the following format:-

2009-08-19 17:12:00.0

does anyone know how I can format this on the list.gsp so that it doesn't display the seconds? (I don't want to change the way it is stored in the database)


1 Answers

Have you looked at the date format tag?

like image 170
Langali Avatar answered Feb 25 '26 02:02

Langali