add date query clause