datediff returns the number of time unites between two dates; datecompare only returns if the dates are equal, earlier, later.