powered by
Calculate the number of days between two provided dates.
rvn_num_days(date1, date2)
number of days between the two days
first day, date format
second day, date format
This method handles leap years if they exist between the specified dates.
rvn_num_days_month for calculating the number of days in a month
rvn_num_days_month
rvn_num_days(as.Date("2017-02-05"),as.Date("2017-02-12")) # 7
Run the code above in your browser using DataLab