Google Sheets functions / Date & Time
Date & Time function · Google Sheets
DATEDIF function
Days, months, or years between dates.
Reference entry. Syntax, tested examples and a practice file arrive with the full guide. Open the official function list.