# NOT RUN {
as.Dates(c(1212121212, "20000101", "2014-10-15", 5806))
# }
# NOT RUN {
# Note that the as.Date (as oppose to as.Dates)
# does not handle missing dates as empty strings
as.Date(c("", "2017-02-16")) # Error
as.Dates(c("", "2017-02-16")) # NA "2017-02-16"
# }
Run the code above in your browser using DataLab