Filter list by before or after date

Is it possible, within a microflow, to filter a list of entities by a date attribute, based on whether or not they are past a certain specific date? As far as I can tell, I can only find a filter option to filter for dates that are equal to a specific date, not before or after.
1 answers

Not in a Filter activity. I see 3 options:

  • If your data in stored in the database, you can retrieve via XPath with your specific date conditions
  • If your data is only in memory and you can’t commit it:
    1. Sort your list by the date and then loop through it, adding to a new list until you pass the cutoff date, then break the loop
    2. Write a few lines of java to filter the list according to your needs. In my opinion, this won’t be worth the effort as performance will be similar to the above.