i need to filter with a date column with not current month records
i tried :
$start = date('Y-m-d'.' 23:59:59',strtotime('-45 days')); $end = date('Y-m-d'.' 00:00:00'); $collection = $collection ->addFieldToFilter('created_at',array('from' => $start, 'to' => $end));
this is Showing only Expect the this two month records
but how i can put "Not equal to"