Filter users by last activity

Hey!
I am interested in filtering users by last-activity. To do this, I need to receive two inputs of type date in the field of last-activity.
How can i do that?

FYI: the filtering will be at the client side.