I have a scenario to query entries from Airtable with a field of “CollectionDate” within the last 24 hours. This query works to get any entry older than right now. I’m formatting the date and time this way because it wasn’t working with the default format due to 24-hour formatting differences.
CollectionDate < "{{formatDate(now; "YYYY-MM-DDTHH:mm:SSS")}}"
However, I can’t seem to find a way to add another condition to include anything newer than 24 hours ago. This does not work:
AND (CollectionDate < "{{formatDate(now; "YYYY-MM-DDTHH:mm:SSS")}}",CollectionDate > "adddays(formatdate(now; "YYYY-MM-DDTHH:mm:SSS");-1))
What would be the best way to query entries only from the last day?