how to show datetime in data-sly-list? | Community
Skip to main content
littlegreywolf
Level 3
Nov 29, 2018 8:54 AM UTC
Solved

how to show datetime in data-sly-list?

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Nov 30, 2018 4:18 AM UTC

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Nov 30, 2018 4:18 AM UTC

See Date section in the HTL Spec -- htl-spec/SPECIFICATION.md at master · adobe/htl-spec · GitHub

Translate
littlegreywolf
Level 3
Nov 30, 2018 2:27 AM UTC

who can help?

Translate