You are here

Current Date

The date object returns the current date.

In FreeMarker there is no such variable as today. Therefore, the current date (as a new Date() Java object) is provided in all templates as the date object in the root of the model.

Example

The following code snippet shows an example of use:


<#assign datetimeformat="EEE, dd MMM yyyy HH:mm:ss zzz">
${date?string(datetimeformat)}

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.