convert date to age in days
dateToDaysOld(testDate, nowDate = Sys.Date(), units = "days", ...)
character
date recognized by asDate()
,
representing the test date.
character
date recognized by asDate()
,
representing the reference date, by default the current day.
character
indicating the units, as used by
difftime()
.
additional parameters are ignored.
integer value with the number of calendar days before the
current date, or the nowDate
if supplied.
dateToDaysOld("23aug2007")
#> [1] 6136