Rovar2000Original post
Rank 2: Process
if(options?.from && options?.to) {
console.log(options?.from, options?.to);
query.push(
Query.greaterThanEqual("startDate", options.from),
Query.lessThanEqual("endDate", options.to)
);
}
i apply this query but the result it's always empty how can i apply a query on a date?
Summary
Developers wanted to query on two datetime attributes and found a solution. They realized they needed to calculate UTC time for better measurement.