I have column as date (factor data type) with mixed date_times as a factor
date
2014-12-30 12:00:00
30-12-2014 12:00:00
12/30/2014 12:00:00
30-Dec-2014 12:00:00
How to format above date-time with R format
like 2014-12-30 12:00:00
I have tried
library(anytime)
anytime(as.factor("df$date"))