Figured this out using hardcoded values as a test.
local stringvar ranges :="Jan 1 2020-Apr 2 2020<br>Nov 3 2021-Dec 2 2022";
local numbervar result:=-1;
local datevar checkdt := date("Jan 4 2020");
local datevar startdt ;
local datevar enddt;
stringvar array dates := split(ranges,"<br>")...
Hi,
I have a string containing multiple date ranges separated by <br> (number of date ranges varies for 1 to ?)
I need to evaluate if a specific date is within any of the date ranges and return true if the date is in any date ranges.
string ex. Jan 1 2020-Apr 2 2020<br>Nov 3 2021-Dec 2...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.