How to create a date filter with a dropdown field for months and another for a list of years?

Certified Associate Developer

Hi,

My question is how you could create a dropdown with the list of months and another dropdown with a list of years and when selecting a value, filter by date. I currently have a date field in my database. I have created an expression rule with a series of filters and one of them is the date with the operator between and the value:

{datetime(year(ri!date), month(ri!date), day(ri!date), "00:00:00"),datetime(year(ri!date), month(ri!date), day (ri!date), "23:59:59")}.

But how could I do it with a dropdown for the year and another for the month? Thank you very much for the help.

  Discussion posts and replies are publicly visible