Count on a date field

Hello,

Is it possible to count the number of documents for which a type date field corresponds to a specific date?

I need to know if an invoice has been paid, for that I put the date of payment on the date of default (1st of January 1970), how can I count the number of invoices that have a payment date to 1970?

Thanks in advance

Hi @Thomas_D
I have a suggestion:
You could do a date range filter

and take the value hits.total.value from the result.
The api which can directly do this is called _count api

Let me know if this worked for you

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.