// filter by creation date
$date = new Zend_Date();
$toDate = $date->get(Zend_Date::W3C); // today
$fromDate = $date->sub('1', Zend_Date::MONTH)->get(Zend_Date::W3C); // one month ago
$orders->addAttributeToFilter('created_at', array('from' => $fromDate, 'to' => $toDate));
// more filtering, type AND
$orders->addAttributeToFilter('status', 'pending');
$orders->addAttributeToFilter('state', array('nlike' => 'new'));
// more filtering, type OR
$processing = array('eq' => 'processing');
$complete = array('like' => 'complete');
$orders->addAttributeToFilter('status', array($processing, $complete));
// sort by creation date
$orders->setOrder('created_at', 'asc');
$orders->setOrder('created_at', 'desc');
$orders->setOrder('created_at'); // default direction is 'desc'
// get product collection object
$productCollection = Mage::getResourceModel('catalog/product_collection');
// get customer collection object
$customerCollection = Mage::getResourceModel('customer/customer_collection');
// get order collection object
$orderCollection = Mage::getResourceModel('sales/order_collection');