add support for Date type to have comparer query