Skip to content

Calculates the difference in days between two dates (end - start). Returns NA if the start date is missing.

Usage

whapi_date_diff_days(start, end)

Arguments

start

Start date (Date or coercible).

end

End date (Date or coercible).

Value

Integer number of days, or NA if start is missing.

Examples

whapi_date_diff_days(Sys.Date() - 10, Sys.Date())
#> [1] 10
#> 10