Catra Posted August 2, 2021 Report Share Posted August 2, 2021 How can I use Date range in CASE WHEN? Do you have samples? Thanks! Quote Link to comment Share on other sites More sharing options...
1 Meekeee Posted August 2, 2021 Report Share Posted August 2, 2021 Hi @Catra - you can try this one: CASE WHEN [@field:DATE_FIELD] >= CONVERT(datetime, 'mm/dd/yyy', 101) AND [@field:DATE_FIELD] <= CONVERT(datetime, 'mm/dd/yyy', 101) THEN 'TRUE' ELSE 'FALSE' END For more information, you may check this article: https://howto.caspio.com/function-reference/ Catra 1 Quote Link to comment Share on other sites More sharing options...
0 Catra Posted August 2, 2021 Author Report Share Posted August 2, 2021 Thank you @Meekeee! Quote Link to comment Share on other sites More sharing options...
0 TellMeWhy Posted August 2, 2021 Report Share Posted August 2, 2021 3 minutes ago, Catra said: Thank you @Meekeee! If you want it to precise to DATE without the time (cause sometimes it conflicts), you can just convert to date instead of datetime. Catra 1 Quote Link to comment Share on other sites More sharing options...
Question
Catra
How can I use Date range in CASE WHEN? Do you have samples? Thanks!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.