Aspose::Cells::AutoFilter::AddDateFilter method

AutoFilter::AddDateFilter method

Adds a date filter.

void Aspose::Cells::AutoFilter::AddDateFilter(int32_t fieldIndex, DateTimeGroupingType dateTimeGroupingType, int32_t year, int32_t month, int32_t day, int32_t hour, int32_t minute, int32_t second)
ParameterTypeDescription
fieldIndexint32_tThe integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0).
dateTimeGroupingTypeDateTimeGroupingTypeThe grouping type
yearint32_tThe year.
monthint32_tThe month.
dayint32_tThe day.
hourint32_tThe hour.
minuteint32_tThe minute.
secondint32_tThe second.

Remarks

If DateTimeGroupingType is Year, only the param year effects. If DateTiemGroupingType is Month, only the param year and month effect.

See Also