using javascript:condition in the "Value field" of "Field Styles : what syntax can i use to compare two date

isabelle74
Giga Contributor

Hi All,

 

I want to defined a style by using javascript:condition in the "Value field" of "Field Styles" to set the background color. i don't what is the right syntax to compare two .

Exemple :

In a task i want a red color in a list if closed>due-date and  a green color if closed<=due-date

 

Thanks & Regards,

Isabelle

6 REPLIES 6

Can you add both the styles and try it out? The one for green and the one for red color?

Note: The first date should be the start date and the second one the end date. 

Have you checked?