Changes
Title
unchanged
Adding a date range search for CGridView the easy way
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
search, date, date range, date range filter, CGridView
Content
changed
[...]
));
}
?>
```
**PLEASE NOTE:** If you currently have a column in your grid view that is displaying the same date attribute you are range-searching on, make sure you set the 'filter' setting to false.
E.g.(thank you to yiimike for this tip!) I.e.
[...]
'columns'=>array(
'id',
//...
array(
'name'=>'date_created',[...]
'filter'=>false, // Set the filter to false when date range searching
),
//...
),
));
?>
```[...]