Format Date to be red if date passed in template grid

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? 
2 answers

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.


Hi Megan Head,


Use the below widget,