Skip to main content
1-Visitor
Feb 8, 2013 12:08 AM UTC
Solved

Date comparison question

Is there a way to write a query in Integrity that will compare dates? (ie. one date greater than another.)

    1-Visitor
    Feb 9, 2013 12:55 AM UTC

    There are query filters for dates in a specified range, so you could use that to get to a basic grater than or less than.

    For example, getting all items with create date > Jan 1st, 2013 could be created date between Jan 1st, 2013 and some date way in the future.

    If you are looking for a query with a date field greater than another date field, I am not sure if you can do that in a query directly.

    An alternative to mimic that functionality is to create a computed logical field which performs the date field comparison, then query for items where that logical field = true.

    Matt

    1 reply

    1-Visitor
    Feb 9, 2013 12:55 AM UTC

    There are query filters for dates in a specified range, so you could use that to get to a basic grater than or less than.

    For example, getting all items with create date > Jan 1st, 2013 could be created date between Jan 1st, 2013 and some date way in the future.

    If you are looking for a query with a date field greater than another date field, I am not sure if you can do that in a query directly.

    An alternative to mimic that functionality is to create a computed logical field which performs the date field comparison, then query for items where that logical field = true.

    Matt

    Translate