Any way to test different dates of "today()" to see if expression works?

I need to test sample dates throughout the year to see if my expression with a lot of today() elements works as expected. Any idea on how to test this?

0 6 144
6 REPLIES 6

Could you update if you have several expressions involving TODAY() and where these are used?

Yes, and on 3 different apps. But Iโ€™d like to test only 1 expression, which has many today() elements.

Thank you.

One approach I would try is, in all those elements, I would replace TODAY() with USERSETTINGS(TodayCheck). Here [TodayCheck] is a date type column in USERSETTINGS

I would keep changing values of [TodayCheck] in USERSETTINGS. After successful debugging and testing, I would again replace USERSETTINGS(TodayCheck) back to TODAY()

So in an expression IF ( [Delivery Date]>TODAY() , โ€œOkayโ€, โ€œPast Delivery Dateโ€) , I would test with

IF ( [Delivery Date]>USERSETTINGS(TodayCheck) , โ€œOkayโ€, โ€œPast Delivery Dateโ€)

Neat! Thank you!

elco
New Member

I have a scratch pad โ€œappโ€ or table which I use with the expression eval โ€œTestโ€ button.

So you could manually create those TODAY values in a table and simply write the same expression and press โ€˜Testโ€™ button under expression editor.

Hmmโ€ฆ I was hoping for a simpler solution. But good idea if that is all that can be done

Top Labels in this Space