AND(ISNOTBLANK([Time 2]),[Time 1 DateTime Start]<NOW(),[Time 1 DateTime End]>NOW(),[Patrol 1 Status]=“Completed”),CONCATENATE("Patrol 2 Due at ",[Time 2]),
)
My Datetime is [Time 1 DateTime Start]<NOW(),[Time 1 DateTime End]>NOW() and patrol status “Note Completed” but it just is not giving the “Patrol 1 Due Now”. It’s not showing anything. Below are the start and end datetimes: I have adjusted my system dates:
All fields are DateTimes except for the text field above which is a virtual column:
I am at a loss as to why it is unable to understand what the datetimes are and what status should be set.
Please post a screenshot of the table’s column list showing at least the Time 1, Time 1 DateTime Start, Time 1 DateTime End, and Patrol 1 Status columns and including the column name and type for each.
How and when do Time 1 DateTime Start and Time 1 DateTime End get their values?
It is created as part of a behaviour action. The Time 1, Time 2 etc are times of the day, Start Date Time will start with the date and then add the time, and so on. The end time is simply adding 1 (“001:00:00”) or 2 (“002:00:00”) onto the datetime start.
I’m at a loss, then. The next step is to test each individual expression component until you find the one that fails. Create separate virtual columns each with one of the following expressions:
I think I may have found the problem, further testing required. I had changed my System DateTime to go back to create “Night Shift”. Now that I have changed back it is sort of working. So am going to do further tests overnight in a real datetime environment.
It would appear that the problem was indeed the fact that I was using a changed system datetime. The real time was about 16:00 but I manually set the system time to 22:00 the night before. When the datetime was set automatically to my location, the problems went away.