DAYS: Basic DAYS function from excel

Description Usage Arguments Value Examples

View source: R/DAYS.R

Description

It acts similiarly to Excel's DAYS function. It calculates the difference between two dates in days.

Usage

1
DAYS(start_date, end_date)

Arguments

start_date

Give the start_date argument so it can calculate days.

end_date

Give the end_date argument so it can calculate days.

Value

In this example we are interested how many days there are between 1st February 2020 and 15th February 2020 which is 14. Function will always return numeric class.

Examples

1
DAYS(DATE(2020,2,1),DATE(2020,2,15))

ExcelFunctionsR documentation built on July 1, 2020, 8:35 p.m.