powered by
Convert input in month-day-year format to date
as_mdy(x)
Input variable
Date variable of class Date
Use as.character if x is a factor
# NOT RUN { as_mdy("2-1-2014") # } # NOT RUN { as_mdy("2-1-2014") %>% month(label = TRUE) as_mdy("2-1-2014") %>% week() as_mdy("2-1-2014") %>% wday(label = TRUE) # }
Run the code above in your browser using DataLab