I am currently working with a data set with a million rows where all of the dates are not in the standard unambiguous format that R requires. I have worked on trying to reformat the date-time to the standard unambiguous format but have had zero luck. I have tried using functions such as format
, as.POSIXlt
and as.POSIXct
but with no luck.
The format is currently "%m/%d/%Y %H:%M:%OS"
and I need to reformat it as "%Y/%m/%d %H:%M:%OS"
.
Any help is appreicated.