I am trying to retrieve an array of entries on a particular section where inspectionDate
is greater than today's date. Here is the code.
$criteria = craft()->elements->getCriteria(ElementType::Entry);
$criteria->section = 'inspections';
$criteria->inspectionDate > '("now")';
$criteria->order = 'dateCreated asc';
$inspections = $criteria->find();
I am getting a Property "Craft\ElementCriteriaModel.inspectionDate" is not defined.
error when trying to run this code.I have made sure that inspectionDate is the field handle and is also a date type.