DAYS Function in Excel: Days Between Two Dates

⏱ 1 min readUpdated 28 September 2026

Date & TimeLevel: BeginnerAvailable in: Excel 2013+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Related functions

DAYS returns the number of days between two dates. Subtracting the dates (=B2-A2) gives the same answer.

Syntax

=DAYS(end_date, start_date)
Argument What it means
end_date, start_date Note the order: end first.

Examples

Example 1

=DAYS(B2, A2)

Days between order and delivery.

Example 2

=DAYS(TODAY(), C2)

Invoice age in days.

NETWORKDAYS · DATEDIF

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong