The problem was with the strfindwhat data type. I should have been date datatype. Anyways thanks.