Converts its input to type Date (or POSIXct), and asserts
that the content is in fact of suitable type by checking for remaining
NA
assertDate(x)
assertTime(x)A vector of Date or POSIXct objects. As a side
effect, an error will be thrown in any of the input was not convertible.
Note that these functions just check for NA and cannot
check for semantic correctness.