isDateTime function

IValidator isDateTime()

Returns a IValidator that checks if the given value is a DateTime For better performance and readability, use the $isDateTime variable directly.

Implementation

IValidator isDateTime() => isType<DateTime>();