1. Home
  2. Functions
  3. Date and time
  4. DAYS

DAYS function

Returns the number of days between two dates.

Syntax

=DAYS(end_date, start_date)

Arguments

ArgumentRequiredDescription
end_dateRequiredThe later date
start_dateRequiredThe earlier date

How to use DAYS

DAYS takes 2 required arguments. Type =DAYS( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=DAYS(DATE(2021,12,31), DATE(2021,1,1))Result 364
=DAYS(DATE(2011,2,1), DATE(2011,3,15))Result -42

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.