implemented search by date