convert date to age in days
dateToDaysOld(testDate, nowDate = Sys.Date(), units = "days", ...)
testDate
: character
date recognized by asDate()
, representing the test date.nowDate
: character
date recognized by asDate()
, representing the reference date, by default the current day.units
: 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")
Other jam date functions: asDate()
, getDate()