Added date range selection function
Fix merge conflict in testscan