Format Date to be red if date passed in template grid

0
Hi, I’m trying create a template grid to list out new projects and would like to have a “Next Review” date visible on the container. I want the color of either the text or the border of the date to turn red if the date has passed, does anyone know how to do this? 
asked
2 answers
2

You could use dynamic classes in the appearance tab of your date / text, where you could put something like

if $currentObject/dateAttribute < [%BeginOfCurrentDay%] then 'text-danger' else ''

Make sure the class text-danger does what you want, or use another class that suits your styling or one that creates a red border or whatever.

answered
0

Hi Megan Head,

 

Use the below widget,

https://marketplace.mendix.com/link/component/106254

answered