powered by
Calculates the difference in days between two dates (end - start). Returns NA if the start date is missing.
end - start
NA
whapi_date_diff_days(start, end)
Integer number of days, or NA if start is missing.
start
Start date (Date or coercible).
Date
End date (Date or coercible).
whapi_date_diff_days(Sys.Date() - 10, Sys.Date()) #> 10
Run the code above in your browser using DataLab