I have a collection of users and i want to get all the users who registered in 2015.
With a normal date string it is possible tot query:
$query=[
'timestamp'=> [
'$regex' => "2015"
]
];
But when I try this on a MongDate timestamp it doens't work anymore.
Any ideas?