As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<#assign modifiedToday=""><#if "2006.05.08" == childnode.properties.modified?string("yyyy.MM.dd")> …do something… </#if>
<#assign datetimeformat="EEE, dd MMM yyyy HH:mm:ss zzz"> ${date?string(datetimeformat)}
I also noticed this strange lack of a Date object in FreeMarker and added it to the Alfresco templating data-model. So the current date (as a new Date() Java object) can be accessed in a template as the "date" object in the root of the model. For example: <#assign datetimeformat="EEE, dd MMM yyyy HH:mm:ss zzz"> ${date?string(datetimeformat)} Hope this helps,Kevin