Expand my Community achievements bar.

SOLVED

how to show datetime in data-sly-list?

Avatar

Level 3

how to show datetime in data-sly-list?

I made a field using datepicker in aem6.1 dialog.

I can use it to set datetime value like "2018-11-01 12:10".   displayedFormat can work in datepicker.

When I use ${item.startDate @ dateFormat="YYYY-MM-DD HH:mm"} in html , I find it show wrong value like "2018-11-01T12:10:00.000+08:00".

How can I make html show the right datetime value like 2018-11-01 12:10 ?

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10