The DARelativeDatesPredicateEditorRowTemplate class describes a special template for building an advanced relative - date comparison over the datDateTime fields.
In addition to standard
is less than,
is greater than and
between comparisons, this template provides is in the last and is in the next n
years components to build conditions which is relativie to the current date.
Thus you can easily build more general predicates something like -
select orders that were created in last 5 days or
select tasks that I need to handle within next week
Note that DARelativeDatesPredicateEditorRowTemplate can be used for creating predicates only for local (client-side) filtering.
You can find a sample of how to use the DARelativeDatesPredicateEditorRowTemplate inside the DAFilters sample.
- Reference: DARelativeDatesPredicateEditorRowTemplate.h
- Namespace: DataAbstract
- Ancestry: NSPredicateEditorRowTemplate | DARelativeDatesPredicateEditorRowTemplate
- Filtering Data with NSPredicate
- Filters Sample (Xcode)
- Filters (iOS) Sample (Xcode)