Filter + Date range issue - dates are being filtered for the whole year rather than specific range

Description

I have a date range filter and when from and to dates are selected, the items that are filtered are those that match the year of the from or to date, rather than items that are in between the specific dates.

eg. user selected from 5/5/2023 to 5/5/2024 - filter will show all items from 2023 and 2024.

Any help on why this might be happening? Note: the date field is hidden in the cms item. The displayed date is not the date that is being filtered, it is for display purposes only.

Site URL

Any ideas here @Support-Luis ? Thanks!

Hey @jaime!

You are only missing the fs-cmsfilter-type="date" on the date fields in your collection.

I’ve added this attribute with an override and you can see the dat range work as expected!

Let me know if you have any other issues!

@Support-Luis legend as always. Thanks!

1 Like