Date variables in copyright templates

intellij-idea

Solution

As documentation says:

$today DateInfo The current date and time.

...

DateInfo has the following properties:

year int The current year.

month int The current month (1-12).

Try: `$today.year`

As this is Velocity template (?) you don't have to use braces - { }

Cheers

Problem

Intellij documentation says: ``` DateInfo has the following properties: year int The current year. month int The current month (1-12). ``` I can't make Intellij generate current year for me. I tried all possible: `$DateInfo.year`, `${DateInfo.getYear()}`, etc.

Original source