Hi,
I need to use conditional formatting on a report that one field is a DateTime, the condition must be activated when this field take a value less or equal that another DateTime.
But the filters works with String only, how cold I make a filter work with DateTime?
Exemple of my code:
[code]
FormattingRule formAtraso = new FormattingRule();
rule.Filters.Add(new Filter("=Date", FilterOperator.LessOrEqual, AnotherDateTime.ToString()));
rule.Style.Color = Color.Red;
detail.ConditionalFormatting.Add(rule);
[/code]
I need to use conditional formatting on a report that one field is a DateTime, the condition must be activated when this field take a value less or equal that another DateTime.
But the filters works with String only, how cold I make a filter work with DateTime?
Exemple of my code:
[code]
FormattingRule formAtraso = new FormattingRule();
rule.Filters.Add(new Filter("=Date", FilterOperator.LessOrEqual, AnotherDateTime.ToString()));
rule.Style.Color = Color.Red;
detail.ConditionalFormatting.Add(rule);
[/code]