powered by
Check if the given x is of any known Date type.
IsDate(x, what = c("either", "both", "timeVaries"))
a vector or values to be checked.
can be any value out of "either" (default), "both" or "timeVaries".
either
both
timeVaries
logical vector of the same dimension as x.
This checks for many known Date and Time classes: "POSIXt", "POSIXct", "dates", "times", "chron", "Date".
Year, Month, etc.
Year
Month
# NOT RUN { IsDate(as.Date("2013-04-10")) IsDate(31002) # }
Run the code above in your browser using DataLab