DAYS: Difference in Days Between Two Dates

Description Usage Arguments Value Author(s) See Also Examples

View source: R/DAYS.R

Description

Given a start and end date, calculate the difference in days between the two.

Usage

1
DAYS(end_date, start_date)

Arguments

end_date

End date in format "yyyy-mm-dd" as string.

start_date

Start date in format "yyyy-mm-dd" as string.

Value

Returns the number of days between the start and end date.

Author(s)

Nick Bultman, njbultman74@gmail.com, January 2021

See Also

as.Date

Examples

1
2
DAYS("2016-01-02", "2016-01-01")
DAYS("2017-01-01", "2018-05-28")

njbultman/xlsxFunctions documentation built on Aug. 8, 2021, 3:14 p.m.