Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
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

0 Replies

Avatar

Correct answer by
Level 2

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