I am wanting to convert date-times stored as characters to date-time objects. However if a date time includes midnight then the resulting datetime object excludes the time c
I prefer to use the lubridate package for date-times. It does not seem to cause problems here either:
lubridate
example.dates <- c("2011-11-02 00:31:00","2011-11-02 00:00:00","2011-11-02 00:20:22") library(lubridate) ymd_hms(example.dates)