How to check if current date is within specified date range?

I created a coupon system where you get to choose the validity of said coupon. My question is, which operator does this? I seriously could not figure this out. TIA!

Assuming your coupon has an expiry date, and you’re asking how to check that the expiry date hasn’t yet passed, all you need to do is check that the expiry date is more than the current date.

i.e.

Coupon's Expiry Date > Current Date/Time will return True if the coupon is valid at the time the expression is evaluated.

If I’ve misunderstood your question, and that’s not what you’re asking, then you’ll need to clarify the question.

1 Like

Oh wow, this is it! It was just this simple and i kept overthinking the operation/formula i need to use for this. Thank you so much!!!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.