HTL code to add page creation date on the page in AEM as a Cloud Service | Community
Skip to main content
Level 4
May 18, 2022
Solved

HTL code to add page creation date on the page in AEM as a Cloud Service

  • May 18, 2022
  • 1 reply
  • 734 views

I am using HTL for rendering page properties on a page. I want to show the date when the page was created but unable to do that through HTL. Is there a way only using HTL?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by raushan123

you can use this ${properties.jcr:created.getTime.toString}

output will be - Fri Mar 11 14:54:36 IST 2022

1 reply

raushan123Accepted solution
Level 4
May 18, 2022

you can use this ${properties.jcr:created.getTime.toString}

output will be - Fri Mar 11 14:54:36 IST 2022

Level 4
May 18, 2022

Yes, it worked. Thank you