checkTimes(x, format = "date")
test <- c("2012-01-17T03:46:41", "2012-01-17T03:46:410") checkTimes(test, format="dateTime") checkTimes("2012-02-01T00:00:00", "dateTime")
Run the code above in your browser using DataLab