Advanced query for tasks based on date they were completed

How would I query tasks that are done based on the date that they were finished? I have timetracking turned off. Does that need to be on?