Which function calculates the difference between two dates?
2024
Which function calculates the difference between two dates?
- A.
Date Add
- B.
Date Diff
- C.
Date Sub
- D.
Add Date
Attempted by 1457 students.
Show answer & explanation
Correct answer: B
The function used to calculate the difference between two dates is typically named Date Diff.
It computes the interval in days, months, or years between a start date and an end date.
Other functions like Date Add modify a single date by adding time intervals.