Get entries by date range from plugin Im trying to figure out how to get Entries by date range, say I would like to get all Entries from one week back, or I would like to get all Entries from a specific month.

I find some Twig examples, but haven't successfully been able to translate them to php for use in my plugin.

Any help is much appreciated.
Ok, found an answer that made it a bit clearer:
How do I get elements using getCriteria from a specific date?

Basically you can do this:

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
$criteria-&gt;postDate = '&gt;'. date('Y-m-d', strtotime("-4 weeks"));
$result = $criteria-&gt;find();


To get Entries form a month back.