I time a t object like this:
t<-c(\"2016-10-19 00:00:00.000\")
I need to convert to POSIXct as this:
as.POSIXct(t, format=\"
You could use lubridate too :
lubridate
library(lubridate) t<-c("2016-10-19 00:00:00.000") ymd_hms(t) #> [1] "2016-10-19 UTC"