Is there a way yet to do something simple like ->filterBy('date') instead of having to loop through all the items and compare dates?
I built a plugin once to show the most recent items that aren’t future, and I guess I could do the same thing to show only future items (like for events). But it would be nice if something was built-in.
// fetch children with a date in the past
$items = $page->children()->filterBy('date', '<', time());
// fetch children with a date in the future
$items = $page->children()->filterBy('date', '>', time());