Added task querying for dates