Multiple choice technology

Which date function returns number value?

  1. days_between

  2. months_between

  3. add_days

  4. add_months

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The months_between date function returns a numeric value representing the number of months between two dates. This is useful for calculating durations, age, or time periods in month units. Other date functions like days_between return counts, while add_days/add_months return modified dates, not numeric values.