Freemarker is a template library, today's variable does not exist, you should consider passing the new Date()
Java Object to the template and formatting it. Consider creating a wrapper class for this to create a new Date () exactly at the time you call it.
source
share