The idea here is to make an indicator inactive after a certain period of time. Let's imagine that I want the indicator to be inactive after one day up from now.
I have the following code:
protected override void OnStateChange()
{
else if (State == State.Terminated)
{
if(ToDay(Time[0]) > 20220329)
{
return;
}
}
}
What could be wrong in my code?
I would really appreciate any help.
Many thanks in advance.

Comment