Hi - I am looking at the following logic for a specific ticket as a test.
(
DATE_FORMAT([Ticket solved - Date],"yyyy-mm-dd") >= DATE_FORMAT(DATE_ADD(START_OF_WEEK_MONDAY(TODAY()),"day",-7),"yyyy-mm-dd")
AND
DATE_FORMAT([Ticket solved - Date],"yyyy-mm-dd") < DATE_FORMAT(START_OF_WEEK_MONDAY(TODAY()),"yyyy-mm-dd")
)
AND
[TicketSolvedWeekday] < [CurrentWeekday]
This seems to be evaluating to True based on the third boolean being True however one of the other two booleans is false so this should evaluate to False.
Why would it ignore the first statement completely like this? Am I missing something?
Broken Boolean Logic?
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Hi Christopher -
I'm glad you were able to figure this out! One potential issue I'm seeing is that when formatting dates, the lowercase "m" corresponds to the minutes number in the timestamp – for the date, you'd need to use the uppercase "M" to get the month number, so:
"yyyy-MM-dd", not "yyyy-mm-dd"
Using the minutes where you mean to use the month could result in some very unpredictable boolean logic!