The DATEDIFF function accepts three parameters, interval, date1, and date2. This function returns an integer representing the difference between date1 and date2 with the unit specified by the interval.