Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

How to format date/time field to pathern YYYY-MMM-DD

Avatar

Level 2

Hi,

I am using LC Designer ES2,

For the Date /time date format, this is automatocaly display on my form.

Another Think, How can i change display the date field to 2015-03-20. The defaut display 15-03-20

Thanks fot all Help

Pierre

1 Accepted Solution

Avatar

Correct answer by
Level 2

H, I flush the date/time field and recreating.

Everiting is OK

THANKS !!!

View solution in original post

4 Replies

Avatar

Level 2

Hi Jasotastic81,

I try the solution, but the display continu to show YY--MM-DD

regards Pierre

Avatar

Level 7

Are you populating the date by script? Or is this a date the user is selecting? Here's what I see when I set it up.

I add the field to a blank document and set the display pattern as described previously.

742891_pastedImage_0.png

I preview the document and select a date.

743029_pastedImage_0.png

The date looks like the fomat that was requested.

743028_pastedImage_2.png

Avatar

Correct answer by
Level 2

H, I flush the date/time field and recreating.

Everiting is OK

THANKS !!!