Updated function scan dates