Added in date filtering to getconstrained