isDate function
Checks whether the given value is a valid DateTime formatted String
Implementation
IValidator isDate() => validator(
(value) => DateTime.tryParse(value) != null,
(value) => Expectation(
message: 'a valid DateTime formatted String', value: value, code: 'value.format_invalid', data: {'format': 'date_time'}),
);