AnsweredAssumed Answered

Date format in a FreeMarker Template

Question asked by rguedes@al.sp.gov.br on Feb 24, 2011
Latest reply on May 11, 2011 by rptester
Hi, folks!

I am trying to use the following code to format a date field to the Brazilian fomat ("DD/MM/YYYY"):

${news.PublishedDate.string("yyyy-MM-dd")}

But, when Alfresco render the web form content, I get this error:


Error generating rendition using radio_final.ftl: freemarker.template.TemplateException: Expected method. radionovo.DataPublicacao.string evaluated instead to freemarker.ext.dom.NodeListModel on line 71, column 19 in freemarker_template.

What could be wrong? Is there another way to do this formatting?

Tks!

Outcomes