SyntaxFix
Write A Post
Hire A Developer
Questions
You were close. format= needs to be added to the as.Date call:
format=
as.Date
mydate <- factor("1/15/2006 0:00:00") as.Date(mydate, format = "%m/%d/%Y") ## [1] "2006-01-15"