Hey everyone, Is there a feature with Statamic to filter a blog collection by creation date?

Im trying to filter by: - Past week - Past month - Past year - Older

If there isn't a feature for this... I know custom filters can be added, but I am having trouble understanding the return syntax here: https://docs.statamic.com/addons/classes/filters

return $this->collection->filter(function ($entry) {
            return str_contains($entry->get('title'), 'bacon');
 });

Any help is appreciated, thanks!

Answered by Brantley! Go to answer.