Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: DXP 7.2 ADT - How to get updated date for custom document type?
In an ADT using Freemaker in an asset publisher, how can I retrieve the equivalent of the last modified date for the custom document and then display it in a readable format (ie. MM-DD-YYYY)
Thank you!
Hi,
In ADT all elements being displayed are assets, hence their title, created date, modified date , .. etc will be available in asset entry object itself.
You can try below code in your ADT to display last modified date in required format.
<#assign dateFormat = "MM-dd-yyyy" />
<#if entries?has_content>
<#list entries as curEntry>
${curEntry.getTitle(locale)}<br/>
${dateUtil.getDate(curEntry.getModifiedDate(), dateFormat, locale)}
</#list>
</#if>
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™