how to search quotes by date on API v2
Hi, am making a rest api for fetching the quotes based on some parameters it works something like this
if(req.body.checked){
console.log(searchCriteria.length)
if(searchCriteria.length) {
searchCriteria += `and(Quote_Stage:equals:${req.body.checked})`
} else {
searchCriteria += `(Quote_Stage:equals:${req.body.checked})`
}
}
if(req.body.saleDate){
console.log(searchCriteria.length)
if(searchCriteria.length) {
searchCriteria += `and(Valid_Till:equals:${req.body.saleDate})`
} else {
searchCriteria += `(Valid_Till:equals:${req.body.saleDate})`
}
}
I want to get the quotes where the the current date is between the one submited from the client to the present day, doing it like how it is right now it only gets the quotes from that specific date
any help is appreciated