DARelativeDatesPredicateEditorRowTemplate

Overview

The DARelativeDatesPredicateEditorRowTemplate class describes a special template for building an advanced relative - date comparison over the datDateTime fields. In addition to standard is, is not, is less than, is greater than and between comparisons, this template provides is in the last and is in the next n hours/days/weeks/months/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.

Location

See Also

  • Filtering Data with NSPredicate
  • Filters sample
  • Filters (iOS) Sample