how can I make a date picker on a filter?

I've already used this basic structure but it gives an error on make, as an undefined method, i saw this on documentation, but it didn't help.
image.png
Was this page helpful?