Center for Academic Computing:

The DateDiff function is used to calculate the difference between two dates. DateDiff (“interval”, [date1],[date2]) is the syntax for the function. “Interval” refers to whether the calculation is the difference between days (d), months (m) or years (y). [date1] and [date2] refer to the beginning and end dates used in the calculation. ................
................