tags:

views:

1192

answers:

1

Is it possible to do date comparisons against the current date in a freemarker template without passing the current date into the template?

+2  A: 

NO

Freemarker is a templating library, there isn't a today variable.

But you can pass a new Date() Java Object to the template.

Daniel Moura