format date in Grails view

I had a lot of issues formatting date in the JSP view of Grails. You have to be very careful in the argument you provide to format date. In the case
${fieldValue(bean:domainInstance, field:’dateChanged’)} did not work for me and I had to use this:- . Do not forget the double quotes else it will print SYSDATE!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s