I am using an Arcade Filter function in an attribute expression. I am trying to pull back all records that were created today. The sqlExpression looks like this:
var nestSurveySql = "NestGlobalID = '" + nestRec.GlobalID + "' AND survey_date > '" + Today() + "'";
The output to the console from this sql string looks like this:
NestGlobalID = '2e6b7d-0586-44a8-9e54-bf1f01e3' AND survey_date > '2022-06-21T00:00:00-07:00'
This seems to work as it does return records. However, it is returning two records when I was only expecting one. The extra record has a date that is from the day before today:
2022-06-20T17:55:33.196-07:00
2022-06-21T08:37:23.667-07:00
Is there a way to format this sql expression so that it works properly and only returns records for today?