I\'m trying to use lubridate to extract the month of a date but the class changes. Here is an example of my code
library(lubridate) mydates<-c("10-10-