Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Change the display format of date/time when using Xpath

Avatar

Level 2

How can /process_data/@create_time in Xpath be formatted to display as 08-30-2016T22:50:50Z instead of 2016-08-30T22:50:50Z?

1 Accepted Solution

Avatar

Correct answer by
Level 2

{$format-dateTime-withFormat(/process_data/@create_time, 'MM-dd-YYYY hh:mm:ss a')$} 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

{$format-dateTime-withFormat(/process_data/@create_time, 'MM-dd-YYYY hh:mm:ss a')$}