05-08-2006 08:37 AM
<#assign modifiedToday=""><#if "2006.05.08" == childnode.properties.modified?string("yyyy.MM.dd")>
…do something…
</#if>
05-08-2006 10:46 AM
<#assign datetimeformat="EEE, dd MMM yyyy HH:mm:ss zzz">
${date?string(datetimeformat)}
05-08-2006 11:33 AM
09-04-2007 02:47 PM
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
09-10-2007 05:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.