SyntaxFix
Write A Post
Hire A Developer
Questions
This works perfectly for me, not matter how the date was coded previously.
library(lubridate) data$created_date1 <- mdy_hm(data$created_at) data$created_date1 <- as.Date(data$created_date1)