Dropdown to filter files by age

Have a look at this script. It might be close to what you are after.