Getting Entries that were updated after a certain day? I need to get all the entries that were updated after a certain date, I tried a couple things, but it doesn't seem to work, does anyone know how I can accomplish this?

This seems wrong to me, but it doesn't throw any error, neither does it accomplish what I want.

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
$criteria-&gt;section = 'affiliates';
$criteria-&gt;dateUpdated("&gt; '2015-09-02'");

$query = craft()-&gt;elements-&gt;buildElementsQuery($criteria);
$queryResults = $query-&gt;queryAll();

$affiliates = EntryModel::populateModels($queryResults);
Your criteria for the date updated was written in the wrong syntax. It should be:

$criteria-&gt;dateUpdated = '&gt; 2015-09-02';

You can also simplify the way you query your Element Criteria Model like so:

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
$criteria-&gt;section = 'affiliates';
$criteria-&gt;dateUpdated = '&gt; 2015-09-02';
$affiliates = $criteria-&gt;find();


Take a look at the Working with Elements documentation for more info.