Creating an archive filter with month/year dates

We are in the process of migrating from Wordpress to another platform, and have indexed some posts in Algolia. The previous system has an “archive” filter that looks like a drop down with the month/year going back several years. For example:

May 2020
April 2020
March 2020
February 2020
January 2020
December 2019

January 2019

So if the user selected February 2020, they would see posts from February 1, 2020 to February 29, 2020.

How can we create something similar with Algolia? I have read up on date filtering, and we have a date attribute in our index as a timestamp. I also found this calendar widget guide:

I’m concerned it won’t work though because it appears to be for instantsearch v2?

One alternative I thought of was to have a month and year drop down, and let the user select them independently, but I’m worried this will lead to no results if they pick an invalid combination?

Any feedback is greatly appreciated!

Hi @lbarker,

You can filter between two dates as seen in this documentation.

This example shows how to filter for a particular month.

Let us know how it goes!