## PivotFilterCollection::AddDateFilter method


Filters by date setting of row or column pivot field.

```cpp
PivotFilter Aspose::Cells::Pivot::PivotFilterCollection::AddDateFilter(int32_t baseFieldIndex, PivotFilterType type, const Date &dateTime1, const Date &dateTime2)
```


| Parameter | Type | Description |
| --- | --- | --- |
| baseFieldIndex | int32_t | The index of field in the source. |
| type | PivotFilterType | The type of filtering data. |
| dateTime1 | const Date\& | The date label of filter condition |
| dateTime2 | const Date\& | The upper-bound date label of between filter condition |

## See Also

* Class [PivotFilter](../../pivotfilter/)
* Class [Vector](../../../aspose.cells/vector/)
* Enum [PivotFilterType](../../pivotfiltertype/)
* Class [PivotFilterCollection](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
