Expand my Community achievements bar.

date comparison in data-sly-test?

Avatar

Level 5

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.

1 Reply

Avatar

Community Advisor

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