|  | @@ 178-181 (lines=4) @@ | 
                                                            
                                    | 175 |  | 		} | 
                                                            
                                    | 176 |  |  | 
                                                            
                                    | 177 |  | 		// Date filter | 
                                                            
                                    | 178 |  | 		if(!empty($params['CreatedFrom'])) { | 
                                                            
                                    | 179 |  | 			$fromDate = new DateField(null, null, $params['CreatedFrom']); | 
                                                            
                                    | 180 |  | 			$list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); | 
                                                            
                                    | 181 |  | 		} | 
                                                            
                                    | 182 |  | 		if(!empty($params['CreatedTo'])) { | 
                                                            
                                    | 183 |  | 			$toDate = new DateField(null, null, $params['CreatedTo']); | 
                                                            
                                    | 184 |  | 			$list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); | 
                                                                                
                                |  | @@ 182-185 (lines=4) @@ | 
                                                            
                                    | 179 |  | 			$fromDate = new DateField(null, null, $params['CreatedFrom']); | 
                                                            
                                    | 180 |  | 			$list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00'); | 
                                                            
                                    | 181 |  | 		} | 
                                                            
                                    | 182 |  | 		if(!empty($params['CreatedTo'])) { | 
                                                            
                                    | 183 |  | 			$toDate = new DateField(null, null, $params['CreatedTo']); | 
                                                            
                                    | 184 |  | 			$list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59'); | 
                                                            
                                    | 185 |  | 		} | 
                                                            
                                    | 186 |  |  | 
                                                            
                                    | 187 |  | 		return $list; | 
                                                            
                                    | 188 |  | 	} |