Dynamic style change issue

Not sure if I am missing something here but I’m trying to get a text colour changes on conditions

<p class="mb-0" dmx-text="'Licence&nbsp;'+customer_selected.data.query1.cust_licence_number+'&nbsp;Exp:&nbsp;'+customer_selected.data.query1.cust_lience_exp.formatDate(&quot;dd-MM-yy&quot;)"
					dmx-class:text-success="(var1.datetime.formatDate(&quot;dd-MM-yy&quot;) <= customer_selected.data.query1.cust_lience_exp.formatDate(&quot;dd-MM-yy&quot;))"
					dmx-class:text-danger="(var1.datetime.formatDate(&quot;dd-MM-yy&quot;) >= customer_selected.data.query1.cust_lience_exp.formatDate(&quot;dd-MM-yy&quot;))"></p>

Not sure if I am missing something but this is just not working and stays text-success even if the date is less than todays date.
Any advice would be appreciated. :slight_smile:

Community Page
Last updated: