Hi,
I would like to retrieve records which has enddate 'lesser' than "today". Below is what i come out with, but does not work. Any advice appreciated.
$records = Records::find(array(
'$lte' => array(
array( 'endDateTime' => date())
),
"limit" => 10,
"sort" => array("_id" => -1)
));