In my view I have something like this:
Date: ${it.date}
which has the following output:
Date: 2011-05-24 00:00:00.0.
How can I change the Date formation so that the last part(00:00:00.0) does not appear?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can format a date with the related tag, which is , like this:
Here more info: http://www.grails.org/GSP+Tag+-+formatDate
Hope this helps. 🙂