Check If an Object Is of Type Date
Check if the given x is of any known Date type.
IsDate(x, what = c("either", "both", "timeVaries"))
x |
a vector or values to be checked. |
what |
can be any value out of " |
This checks for many known Date and Time classes: "POSIXt", "POSIXct", "dates", "times", "chron", "Date".
logical vector of the same dimension as x.
Frank E Harrell
IsDate(as.Date("2013-04-10")) IsDate(31002)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.