date comparison in data-sly-test? | Community
Skip to main content
Level 5
November 19, 2018
Question

date comparison in data-sly-test?

  • November 19, 2018
  • 1 reply
  • 1087 views

Can two touchUI date fields (granite/ui/components/foundation/form/datepicker) be compared in HTML using data-sly-test? Also is there a way to get current date in HTL?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
Community Advisor
November 19, 2018

Hi,

You can try below but you can't get the current date in HTL. You need to use JAVA or JS Use API.

<div data-sly-test="${properties.date1 == properties.date2}">TEST</div>

Arun Patidar