<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>DXP 7.2 ADT - How to get updated date for custom document type?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121257812" />
  <subtitle>DXP 7.2 ADT - How to get updated date for custom document type?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121257812</id>
  <updated>2026-04-05T20:48:36Z</updated>
  <dc:date>2026-04-05T20:48:36Z</dc:date>
  <entry>
    <title>RE: DXP 7.2 ADT - How to get updated date for custom document type?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121260624" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121260624</id>
    <updated>2021-11-25T06:54:19Z</updated>
    <published>2021-11-25T06:54:18Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In ADT all elements being displayed are assets, hence their title,
  created date, modified date , .. etc  will be available in asset entry
  object itself.&lt;/p&gt;
&lt;p&gt;You can try below code in your ADT to display last modified date in
  required format.&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;&amp;lt;#assign dateFormat = &amp;quot;MM-dd-yyyy&amp;quot; /&amp;gt;
&amp;lt;#if entries?has_content&amp;gt;
	&amp;lt;#list entries as curEntry&amp;gt;
		${curEntry.getTitle(locale)}&amp;lt;br/&amp;gt;
		
		${dateUtil.getDate(curEntry.getModifiedDate(), dateFormat, locale)}
	&amp;lt;/#list&amp;gt;
&amp;lt;/#if&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2021-11-25T06:54:18Z</dc:date>
  </entry>
  <entry>
    <title>DXP 7.2 ADT - How to get updated date for custom document type?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121257811" />
    <author>
      <name>John Cressman</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121257811</id>
    <updated>2021-11-22T14:56:32Z</updated>
    <published>2021-11-22T14:56:31Z</published>
    <summary type="html">&lt;p&gt;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)&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</summary>
    <dc:creator>John Cressman</dc:creator>
    <dc:date>2021-11-22T14:56:31Z</dc:date>
  </entry>
</feed>
