cancel
Showing results for 
Search instead for 
Did you mean: 

A question about FreeMarker Template

lexxborg
Champ in-the-making
Champ in-the-making
Hi guys,

in the Wiki(http://wiki.alfresco.com/wiki/Template_Guide#Methods), they are talking about the method “dateIncrement(..)â€
4 REPLIES 4

davidc
Star Contributor
Star Contributor
How are you invoking your method?  The syntax is

${method(…)}

Can you post your template (or snippet)?

lexxborg
Champ in-the-making
Champ in-the-making
Hi David,
i tried to invoke the method in the same way as the wiki says:

<#assign datefrom =dateIncrement(date,1000*60*60*24*-7)?string("yyyy\\-MM\\-dd")>


I'm using Alfresco E2.0.0

davidc
Star Contributor
Star Contributor
Looks like the docs are incorrect.

The method is called incrementDate, not dateIncrement.

I'll update the WIKI.

lexxborg
Champ in-the-making
Champ in-the-making
Ok, it works!!!

Thanks!!!