The Excel Date/Time functions section includes the DATEDIF Function. When working as a financial analyst, we might need to know how many days, months, or years separate two dates. We can compute the difference with the aid of the DATEDIF function.