Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

date comparison in data-sly-test?

Level 5
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?


1 Reply
Community Advisor
Community Advisor


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>