add of > and < for the date in the conditions