OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to filter between two dates with Strapi REST API

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Guest
I have entities with start_date and end_date fields. I would like to filter the entities so that only those with today's date falling between start_date and end_date are returned. The date fields are in YYYY-MM-DD format. How can I achieve this using a query?

<p>I have entities with <code>start_date</code> and <code>end_date</code> fields. I would like to filter the entities so that only those with today's date falling between <code>start_date</code> and <code>end_date</code> are returned. The date fields are in YYYY-MM-DD format. How can I achieve this using a query?</p>
 
Top