Hi all,
I have some pages with a custom datefield who stores the birth of the person. I want to show a list with the birthdays of the current month but i don't now how to get all the pages that match the condition.
I know that this doesn't work but it reflex what i'm trying to achieve:
$today = getdate();
$currentmonth = $today[month]; //november
$people = $pages->get("/people/")->find("birthday~=$currentmonth"); //voila i get all the people who born on november!
birthday is an custom datefield...
Anybody could spare me a tip? Thanks!