Hello, is it possible to do a date range lookup in...
# suitescript
p
Hello, is it possible to do a date range lookup in a script that does a record lookup based upon a search? For example the date is 1/15/2021 and I would like to get the custom record that has a start date and end date within that range
b
not enough information given, 1/15/2021 is not a range
make the search in the ui first, then convert it into a script
p
I mean plug 1/15/2021 into the range
how can I do that?
b
phrasing it in a different way will help
is 1/15/2021 less than the end date and greater than the start date
p
thats exactly what I would like to do with the search. like if the start date is 1/1/2021 and the end date is 03/31/2021 and the date being given is in between those two dates
b
start with a filter that compares your end date to 1/15/2021
add another filter that compare your start date to 1/15/2021
👍 1