Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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