implemented date find
changed query to integer for date find