I have two dates:
date1 <- '2015-10-05T20:57:00.000'
date2 <- '2015-10-05T22:43:00.000'
1) I need to know the difference in minutes 2) Also I want to extract year, month, day and hour.
This is how I tried to solve these tasks:
1) time <- difftime(date1,date2,units="mins")
# the result is 0 instead of 106.
2) I want to us "lubridate", but not sure how to apply it to my format.