This question already has an answer here:
I have a custom attribute called
customer_products_changedate it saves the date when I link a product to it and it's linked to the customer.
How do I get the customers, filtered by that attribute, but only if the date in the attribute is older than 14 days.
I currently have this:
$collection = Mage::getResourceModel('customer/customer_collection'); $collection->addAttributeToFilter('customer_products_changedate', 'OLDER THAN 14 DAYS');
Would also be nice how to do delete those attributes than, not the users, just those attribute entries.