Compare current date time with the attribute stored
Hi All, I want to compare the current date and time with date and time attribute to make a decision. I used the following expression: [%CurrentDateTime%]<=$time1 I also tried using secondsBetween() and trimToHours() function, but all these expressions are always evaluating to false even though the condition is true. Please help me in resolving this issue
Ramya S Ramesh
Your expression seems valid, and should work. Did you debug the microflow? You can then see the values of the variables – for DateTimes it will display both the UTC and Session time.
Please be aware of the difference between UTC and Session time, which might cause different behaviour than you'd expect at first sight. Also read the documentation on DateTimes https://docs.mendix.com/refguide/date-and-time-handling/