# Date input as Date object
AddDate(date = Sys.Date(),addDays=14,addMonths=2,addYears=3)
# Date input as character object
AddDate(date = '2019-10-04',addDays=14,addMonths=2,addYears=3)
# Date vectors to add to initial date
AddDate(Sys.Date(), addDays = c(1,2), addMonths = c(4,5),addYears = c(5,6))
Run the code above in your browser using DataLab