Filter an api call by date range

Database & APIs

Hello,

I am relatively new and I would like to make an API request with two filters, the first by department and the second by date.

I have set up the first one which works wonderfully. However, I am having difficulties with the second one.

I am using Olivier Beaulieu's daterangepicker available on the marketplace. The start and end date are recorded in the following variables:

startDate and endDate (data type: DateTime)

In my API request I would like to filter the elements whose date is between startDate and endDate

Wanting to go step by step, in the API call I declared a variable beginDate (type: string) in order to return all the elements whose date is greater than begindate

But I'm stuck at this level

could you help me

Namely the response of my API call gives me for example the following information:

"firstdate_begin": "2024-09-21T08:00:00+00:00",

"firstdate_end": "2024-09-21T10:30:00+00:00",

"lastdate_begin": "2024-09-22T08:00:00+00:00",

"lastdate_end": "2024-09-22T10:30:00+00:00",

What have you tried so far?

j'ai essayé de d'appeler la date exacte dans le call API en vain.

J'ai essayer de creer un filtre dans propriété -> visibilité -> conditionnal -> single condition -> $.firstdate_begin equal to startDate

Did you check FlutterFlow's Documentation for this topic?
Yes
1 reply