Hello to all.
I add the following code into view as > custom option. The field is a date format.
string color;
DateTime rightNow = DateTime.Now;
if (value > rightNow) {
color="black";
}else {
color="red";
}
value="<span style='color: " + color + "'>" + value.ToString() + "</span>";
I get this error
include\CustomExpressions.cs(24,30): error CS1955: Non-invocable member 'System.DateTime.Now' cannot be used like a method.
include\CustomExpressions.cs(25,5): error CS0019: Operator '>' cannot be applied to operands of type 'runnerDotNet.XVar' and 'System.DateTime'