Get Difference in days between two dates as a number

less than 1 minute read


The following R script subtracts two dates and get the difference in days. The dates are in the String format. Thus, the R script has to use date format to convert the strings into dates.

====== Posted On ====== Snippet Code ——