This answer is so simple; I am slightly embarrassed. Thank you. It does work.
–
RyanOct 22 '11 at 4:14

3

Only easy when you know how. Read up on the other Java Extensions. They are really powerful, and you can even write your own.
–
CodemwnciOct 22 '11 at 6:42

thank you very much for this and thank you for asking the question. you've helped others see it as easy now.
–
Frankie LoscavioJan 9 at 17:52

I would also like to point out that for me I had to format the scala statement using the @ symbol and parenthesis like this - @(new Date().format("yyyy")) instead of ${new Date().format("yyyy")}
–
Frankie LoscavioJan 9 at 18:07

yes, this answer was in the play 1.x days. I'll update the answer to reflect play2.x also
–
CodemwnciJan 9 at 21:44