Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
jbakerstull
Creator
Creator

if date is between two dates (formula)

Good afternoon all,

I'm trying to create a formula that returns a 1 if the [Start Date] falls between two dates [Entry Date] and [Exit Adjusted Date]. I came across a different post regarding use of interval match. All I could find is load script information. 

Thanks

4 Replies
dplr-rn
Partner - Master III
Partner - Master III

Do you mean on UI or a chart?
Why not if(startdate >entrydate and startdate<exitdate, 1,0)

Interval match is a script level function
jbakerstull
Creator
Creator
Author

UI, didn't know that interval match is only a script function.

Anil_Babu_Samineni

Try this?

If([Start Date]<=[Entry Date] and [Start Date]<=[Exit Adjusted Date],1)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
PradeepReddy
Specialist II
Specialist II

try like this.. If (StartDate>=EntryDate and StartDate<=ExitDate,' 1','0') as Date_Flag