Change the definition of the find by dates method