compareDates now only compares date components. Fixes date not being selected when time not midnight