Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

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