add date filtering support for records/incidents in API